From e30287aa84c30454b97f630d86029cdd68086ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 20 Apr 2011 12:26:20 -0400 Subject: [PATCH] ifcfg-rh: fix emitting signal for unmanaged specs when removing connection (rh #698202) The signal was emitted in case the removed connection was managed instead of for unmanaged connection. Thus the signal had no effect. That caused incorrect behaviour in case of changing NM_CONTROLLED=no to yes. That didn't enable the device; only after the file was changed for the second time. --- src/settings/plugins/ifcfg-rh/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/plugins/ifcfg-rh/plugin.c b/src/settings/plugins/ifcfg-rh/plugin.c index ae40b90a96..7915c46724 100644 --- a/src/settings/plugins/ifcfg-rh/plugin.c +++ b/src/settings/plugins/ifcfg-rh/plugin.c @@ -213,7 +213,7 @@ remove_connection (SCPluginIfcfg *self, NMIfcfgConnection *connection) g_return_if_fail (self != NULL); g_return_if_fail (connection != NULL); - managed = !!nm_ifcfg_connection_get_unmanaged_spec (connection); + managed = !nm_ifcfg_connection_get_unmanaged_spec (connection); path = nm_ifcfg_connection_get_path (connection); g_object_ref (connection);