NetworkManager r3431 - in trunk: . src



Author: dcbw
Date: Wed Mar 12 17:08:59 2008
New Revision: 3431
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3431&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/src/nm-device.c

Modified: trunk/src/nm-device.c
==============================================================================
--- trunk/src/nm-device.c	(original)
+++ trunk/src/nm-device.c	Wed Mar 12 17:08:59 2008
@@ -1385,11 +1385,8 @@
 		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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]