mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 23:10:18 +01:00
core: update NMManager:devices before emitting notify::devices (rh #1078720)
NMClient's "devices" property was getting out of sync because the daemon was emitting "notify" before actually changing the property value. This resulted in problems with re-activating virtual devices that had previously been deactivated in gnome-control-center and anaconda. (And probably gnome-shell and nm-applet?)
This commit is contained in:
parent
4dba720d8c
commit
acb6a0d305
1 changed files with 2 additions and 2 deletions
|
|
@ -765,12 +765,12 @@ remove_device (NMManager *manager, NMDevice *device, gboolean quitting)
|
|||
g_signal_handlers_disconnect_matched (device, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, manager);
|
||||
|
||||
nm_settings_device_removed (priv->settings, device, quitting);
|
||||
priv->devices = g_slist_remove (priv->devices, device);
|
||||
|
||||
g_signal_emit (manager, signals[DEVICE_REMOVED], 0, device);
|
||||
g_object_notify (G_OBJECT (manager), NM_MANAGER_DEVICES);
|
||||
g_object_unref (device);
|
||||
|
||||
priv->devices = g_slist_remove (priv->devices, device);
|
||||
|
||||
if (priv->startup)
|
||||
check_if_startup_complete (manager);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue