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



commit aa421e09d05f17b111c8f28650826caa4810d983
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 476476f..71ad40a 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -302,6 +302,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]