summaryrefslogtreecommitdiff
path: root/panels
diff options
context:
space:
mode:
authorJamison Lofthouse <jamison.lofthouse@gmail.com>2020-06-24 12:22:33 -0400
committerJamison Lofthouse <jamison@jdloft.com>2020-06-30 03:56:31 +0000
commita2e494f418f448ba7e6d389979fc3cfb7708a3be (patch)
tree0c0e0eb6bf18ee32d50f597bf54fe35389b89837 /panels
parentf4d2eeb7f7310794e4d1fbe69cc3859cbe1ea2f5 (diff)
downloadgnome-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.c14
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);
}