2008-03-12 Dan Williams <dcbw@redhat.com>
* src/nm-device.c - (nm_device_set_ip4_config): don't send property notifications when the ip4 config is set to NULL; it causes a PropertyChanged signal which dbus-glib can't parse because the value is NULL, which isn't a legal object path. Setting the IP4 config to NULL is only valid when deactivating a device anyway, so the device state change will alert listeners that the ip4 config is invalid. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3431 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1385,11 +1385,8 @@ nm_device_set_ip4_config (NMDevice *self, NMIP4Config *config)
|
||||
priv->ip4_config = NULL;
|
||||
}
|
||||
|
||||
if (!config) {
|
||||
if (nm_device_get_state (self) == NM_DEVICE_STATE_ACTIVATED)
|
||||
g_object_notify (G_OBJECT (self), NM_DEVICE_INTERFACE_IP4_CONFIG);
|
||||
if (!config)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
priv->ip4_config = g_object_ref (config);
|
||||
|
||||
|
Reference in New Issue
Block a user