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



commit cd2db97e632a011fd5e4a2a7e0e70134124322fa
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 88582f1..e3a1d36 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -310,6 +310,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]