[gnome-control-center/gnome-3-12] network: report hotspot is running only if device is active



commit 65f142ca20dc8a0f759f6498e15206471d823b73
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Sep 3 12:32:49 2014 -0500

    network: report hotspot is running only if device is active
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723643

 panels/network/net-device-wifi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 3cbdaf8..db7dd0a 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -300,6 +300,9 @@ device_is_hotspot (NetDeviceWifi *device_wifi)
         NMDevice *device;
 
         device = net_device_get_nm_device (NET_DEVICE (device_wifi));
+        if (nm_device_get_active_connection (nm_device) == NULL)
+                return FALSE;
+
         c = find_connection_for_device (device_wifi, device);
         if (c == NULL)
                 return FALSE;


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