libnm-glib: fix demarshalling of Dhcp6Config property changes
This bit apparently got forgotten in 10ea7a911c
This commit is contained in:
@@ -228,12 +228,10 @@ demarshal_dhcp6_config (NMObject *object, GParamSpec *pspec, GValue *value, gpoi
|
|||||||
NMDHCP6Config *config = NULL;
|
NMDHCP6Config *config = NULL;
|
||||||
DBusGConnection *connection;
|
DBusGConnection *connection;
|
||||||
|
|
||||||
if (!G_VALUE_HOLDS (value, DBUS_TYPE_G_OBJECT_PATH))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
priv->got_dhcp6_config = TRUE;
|
|
||||||
|
|
||||||
if (value) {
|
if (value) {
|
||||||
|
if (!G_VALUE_HOLDS (value, DBUS_TYPE_G_OBJECT_PATH))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
path = g_value_get_boxed (value);
|
path = g_value_get_boxed (value);
|
||||||
if (path) {
|
if (path) {
|
||||||
config = NM_DHCP6_CONFIG (_nm_object_cache_get (path));
|
config = NM_DHCP6_CONFIG (_nm_object_cache_get (path));
|
||||||
@@ -244,6 +242,8 @@ demarshal_dhcp6_config (NMObject *object, GParamSpec *pspec, GValue *value, gpoi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
priv->got_dhcp6_config = TRUE;
|
||||||
|
|
||||||
if (priv->dhcp6_config) {
|
if (priv->dhcp6_config) {
|
||||||
g_object_unref (priv->dhcp6_config);
|
g_object_unref (priv->dhcp6_config);
|
||||||
priv->dhcp6_config = NULL;
|
priv->dhcp6_config = NULL;
|
||||||
|
Reference in New Issue
Block a user