summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2011-04-20 12:26:20 -0400
committerJiří Klimeš <jklimes@redhat.com>2011-04-20 12:26:20 -0400
commite30287aa84c30454b97f630d86029cdd68086ead (patch)
tree6aa830eb43b1484f96e48835eec44ff19958ddaf /src
parent258912524e7a94bb7773200f02a5056a3b067796 (diff)
downloadNetworkManager-e30287aa84c30454b97f630d86029cdd68086ead.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/settings/plugins/ifcfg-rh/plugin.c2
1 files changed, 1 insertions, 1 deletions
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);