diff options
author | Jamison Lofthouse <jamison.lofthouse@gmail.com> | 2020-06-24 12:22:33 -0400 |
---|---|---|
committer | Jamison Lofthouse <jamison@jdloft.com> | 2020-06-30 03:56:31 +0000 |
commit | a2e494f418f448ba7e6d389979fc3cfb7708a3be (patch) | |
tree | 0c0e0eb6bf18ee32d50f597bf54fe35389b89837 /panels | |
parent | f4d2eeb7f7310794e4d1fbe69cc3859cbe1ea2f5 (diff) | |
download | gnome-control-center-a2e494f418f448ba7e6d389979fc3cfb7708a3be.tar.gz |
Clean up wifi panel widgets in correct order
Diffstat (limited to 'panels')
-rw-r--r-- | panels/network/cc-wifi-panel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c index e5a81a489..95e01f28b 100644 --- a/panels/network/cc-wifi-panel.c +++ b/panels/network/cc-wifi-panel.c @@ -180,13 +180,6 @@ remove_wifi_device (CcWifiPanel *self, id = nm_device_get_udi (device); - /* Destroy all stack pages related to this device */ - child = gtk_stack_get_child_by_name (self->stack, id); - gtk_widget_destroy (child); - - child = gtk_stack_get_child_by_name (self->header_stack, id); - gtk_widget_destroy (child); - /* Remove from the devices list */ for (i = 0; i < self->devices->len; i++) { @@ -199,6 +192,13 @@ remove_wifi_device (CcWifiPanel *self, } } + /* Destroy all stack pages related to this device */ + child = gtk_stack_get_child_by_name (self->stack, id); + gtk_widget_destroy (child); + + child = gtk_stack_get_child_by_name (self->header_stack, id); + gtk_widget_destroy (child); + /* Update the title widget */ update_devices_names (self); } |