[network-manager-applet] applet: fix nm-applet tooltip when a VPN connection is active (bgo #737585)



commit 64d744e99e7cf55e486dd51ed083d42e9e1c9c49
Author: Jiří Klimeš <jklimes redhat com>
Date:   Tue Nov 25 09:38:06 2014 +0100

    applet: fix nm-applet tooltip when a VPN connection is active (bgo #737585)
    
    Active VPN connections contain a device of a base connection, but we are
    interested in the base active connection itself.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737585

 src/applet.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 6e9bcc8..5ee20e7 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -1420,6 +1420,10 @@ applet_find_active_connection_for_device (NMDevice *device,
                devices = nm_active_connection_get_devices (active);
                connection_path = nm_active_connection_get_connection (active);
 
+               /* Skip VPN connections */
+               if (nm_active_connection_get_vpn (active))
+                       continue;
+
                if (!devices || !connection_path)
                        continue;
 


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