[network-manager-applet/jk/applet-tooltip-bgo737585: 2/2] applet: fix nm-applet tooltip when a VPN connection is active (bgo #737585)
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/jk/applet-tooltip-bgo737585: 2/2] applet: fix nm-applet tooltip when a VPN connection is active (bgo #737585)
- Date: Tue, 25 Nov 2014 08:47:50 +0000 (UTC)
commit 227c682b452d7e40f7b9b62b42b0294ae02cfd13
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]