[gnome-control-center] sharing: Fix crash when disabling sharing



commit 9315eb0251d614cb9000137c037fd6b72d88fbc2
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Oct 11 17:28:47 2015 +0200

    sharing: Fix crash when disabling sharing
    
    Left-over code from 9d45904f3c2e06240574145f9916686475497803 meant that
    we'd try to disable a non-existent switch.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756391

 panels/sharing/cc-sharing-panel.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index ddc1420..6da32ba 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -106,8 +106,6 @@ cc_sharing_panel_master_switch_notify (GtkSwitch      *gtkswitch,
       OFF_IF_VISIBLE(priv->screen_sharing_switch);
 
       gtk_switch_set_active (GTK_SWITCH (WID ("remote-login-switch")), FALSE);
-      gtk_switch_set_active (GTK_SWITCH (WID ("save-received-files-to-downloads-switch")),
-                             FALSE);
     }
 
   gtk_widget_set_sensitive (WID ("main-list-box"), active);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]