From 4abfc7a779c8e182b054769f3267b0d6b3f17945 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Thu, 14 Oct 2004 20:47:35 +0000 Subject: [PATCH] Thu Oct 14 16:47:12 2004 Jonathan Blandford * panel-applet/NMWirelessAppletDbus.c (nmwa_dbus_update_device_wireless_networks): remove warnings. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@234 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 5 +++++ panel-applet/NMWirelessAppletDbus.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 17b28ab53c..9ceb279ab8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 14 16:47:12 2004 Jonathan Blandford + + * panel-applet/NMWirelessAppletDbus.c + (nmwa_dbus_update_device_wireless_networks): remove warnings. + Thu Oct 14 16:40:39 2004 Jonathan Blandford * panel-applet/NMWirelessApplet.c (animation_timeout): Make diff --git a/panel-applet/NMWirelessAppletDbus.c b/panel-applet/NMWirelessAppletDbus.c index 67d960ff00..7feefa1e88 100644 --- a/panel-applet/NMWirelessAppletDbus.c +++ b/panel-applet/NMWirelessAppletDbus.c @@ -941,7 +941,9 @@ static void nmwa_dbus_update_device_wireless_networks (NetworkDevice *dev, NMWir if (dev->type != DEVICE_TYPE_WIRELESS_ETHERNET) goto out; - active_network = nmwa_dbus_get_active_network (applet, dev->nm_device, APPLET_STATE_IGNORE); + + if (dev->active) + active_network = nmwa_dbus_get_active_network (applet, dev->nm_device, APPLET_STATE_IGNORE); if (applet->applet_state == APPLET_STATE_NO_NM) goto out; /* Don't proceed if NetworkManager died during the call to get the active network */