|
|
94180d |
From acb6a0d305dddccb6d73575c88aefad60faa173a Mon Sep 17 00:00:00 2001
|
|
|
94180d |
From: Dan Winship <danw@gnome.org>
|
|
|
94180d |
Date: Thu, 27 Mar 2014 12:16:46 -0400
|
|
|
94180d |
Subject: [PATCH] core: update NMManager:devices before emitting
|
|
|
94180d |
notify::devices (rh #1078720)
|
|
|
94180d |
|
|
|
94180d |
NMClient's "devices" property was getting out of sync because the
|
|
|
94180d |
daemon was emitting "notify" before actually changing the property
|
|
|
94180d |
value. This resulted in problems with re-activating virtual devices
|
|
|
94180d |
that had previously been deactivated in gnome-control-center and
|
|
|
94180d |
anaconda. (And probably gnome-shell and nm-applet?)
|
|
|
94180d |
---
|
|
|
94180d |
src/nm-manager.c | 4 ++--
|
|
|
94180d |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
94180d |
|
|
|
94180d |
diff --git a/src/nm-manager.c b/src/nm-manager.c
|
|
|
94180d |
index be2f118..48ce061 100644
|
|
|
94180d |
--- a/src/nm-manager.c
|
|
|
94180d |
+++ b/src/nm-manager.c
|
|
|
94180d |
@@ -765,12 +765,12 @@ remove_device (NMManager *manager, NMDevice *device, gboolean quitting)
|
|
|
94180d |
g_signal_handlers_disconnect_matched (device, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, manager);
|
|
|
94180d |
|
|
|
94180d |
nm_settings_device_removed (priv->settings, device, quitting);
|
|
|
94180d |
+ priv->devices = g_slist_remove (priv->devices, device);
|
|
|
94180d |
+
|
|
|
94180d |
g_signal_emit (manager, signals[DEVICE_REMOVED], 0, device);
|
|
|
94180d |
g_object_notify (G_OBJECT (manager), NM_MANAGER_DEVICES);
|
|
|
94180d |
g_object_unref (device);
|
|
|
94180d |
|
|
|
94180d |
- priv->devices = g_slist_remove (priv->devices, device);
|
|
|
94180d |
-
|
|
|
94180d |
if (priv->startup)
|
|
|
94180d |
check_if_startup_complete (manager);
|
|
|
94180d |
}
|
|
|
94180d |
--
|
|
|
94180d |
1.8.5.3
|
|
|
94180d |
|