Commit ec50cbcd authored by Benjamin Berg's avatar Benjamin Berg Committed by Georges Basile Stavracas Neto
Browse files

network: Ensure devices are removed from UI when disappearing

The "removed" callback from NMObject is never called when the object is
simply finalised because the UI drops the reference. Explicitly call the
handler so that UI elements are removed.
parent f547d912
......@@ -556,6 +556,8 @@ panel_remove_device (CcNetworkPanel *panel, NMDevice *device)
if (object == NULL)
/* NMObject will not fire the "removed" signal, so handle the UI removal explicitly */
object_removed_cb (object, panel);
g_ptr_array_remove (panel->devices, object);
/* update vpn widgets */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment