[network-manager-applet] return active connection for system connections too



commit 518fe831e19216f65b890ca574212914ed142707
Author: Raul Gutierrez Segales <rgs rieder net py>
Date:   Mon May 11 20:47:11 2009 -0400

    return active connection for system connections too
---
 src/applet.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/applet.c b/src/applet.c
index 1cec7f7..55fa9fc 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -977,8 +977,12 @@ applet_find_active_connection_for_device (NMDevice *device,
 			NMDBusConnection *tmp;
 
 			tmp = nm_dbus_settings_get_connection_by_path (applet->dbus_settings, connection_path);
-			if (tmp)
+			if (tmp) {
 				connection = nm_exported_connection_get_connection (NM_EXPORTED_CONNECTION (tmp));
+				if (out_active)
+					*out_active = active;
+				break;
+			}
 		} else if (!strcmp (service_name, NM_DBUS_SERVICE_USER_SETTINGS)) {
 			NMAGConfConnection *tmp;
 



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