[PATCH] libnm-gtk: Keep the created connection in wireless dialog
- From: Gary Ching-Pang Lin <chingpang gmail com>
- To: NetworkManager-list gnome org
- Subject: [PATCH] libnm-gtk: Keep the created connection in wireless dialog
- Date: Wed, 16 Nov 2011 11:08:25 +0800
Although nma_wireless_dialog_get_connection() creates a NMConnection
object for the hidden AP, the object wasn't kept, and the function
would return different NMConnection objects each time.
---
src/libnm-gtk/nm-wireless-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/libnm-gtk/nm-wireless-dialog.c b/src/libnm-gtk/nm-wireless-dialog.c
index 0d79f75..3111037 100644
--- a/src/libnm-gtk/nm-wireless-dialog.c
+++ b/src/libnm-gtk/nm-wireless-dialog.c
@@ -1236,6 +1236,8 @@ nma_wireless_dialog_get_connection (NMAWirelessDialog *self,
}
nm_connection_add_setting (connection, (NMSetting *) s_wireless);
+
+ priv->connection = g_object_ref (connection);
} else
connection = g_object_ref (priv->connection);
--
1.7.3.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]