diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-11-25 09:38:06 +0100 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2014-11-27 10:26:39 +0100 |
commit | 64d744e99e7cf55e486dd51ed083d42e9e1c9c49 (patch) | |
tree | 2777192b0b9bef694db636e7775574f21ed6b54d | |
parent | d63ad671fd20a0dfc82738eecb4e7b4e013311ee (diff) | |
download | network-manager-applet-64d744e99e7cf55e486dd51ed083d42e9e1c9c49.tar.gz |
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
-rw-r--r-- | src/applet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/applet.c b/src/applet.c index 6e9bcc88..5ee20e7e 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; |