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.
This commit is contained in:
Jiří Klimeš 2011-04-20 12:26:20 -04:00
parent 258912524e
commit e30287aa84

View file

@ -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);