mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-07 00:31:11 +00:00
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:
parent
a5a8aa0801
commit
7896d4552d
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
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.
|
||||
|
||||
2008-03-12 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-properties-changed-signal.c
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue