[network-manager-applet] editor: default to IPv6 Auto for manually created connections too



commit 7068b0f7052078f101ad1eccc3456492f03fbb8b
Author: Mathieu Trudel-Lapierre <mathieu tl gmail com>
Date:   Mon Jul 18 15:22:31 2011 -0400

    editor: default to IPv6 Auto for manually created connections too
    
    New connections created by hand by a user (e.g. with the connection
    editor's Add button) should have IPv6 set to Automatic by default.

 src/connection-editor/page-ip6.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/page-ip6.c b/src/connection-editor/page-ip6.c
index 70c6f09..0d6831a 100644
--- a/src/connection-editor/page-ip6.c
+++ b/src/connection-editor/page-ip6.c
@@ -331,7 +331,7 @@ populate_ui (CEPageIP6 *self)
 	NMSettingIP6Config *setting = priv->setting;
 	GtkListStore *store;
 	GtkTreeIter model_iter;
-	int method = IP6_METHOD_IGNORE;
+	int method = IP6_METHOD_AUTO;
 	GString *string = NULL;
 	SetMethodInfo info;
 	const char *str_method;
@@ -341,6 +341,8 @@ populate_ui (CEPageIP6 *self)
 	gtk_combo_box_set_active (priv->method, 0);
 	str_method = nm_setting_ip6_config_get_method (setting);
 	if (str_method) {
+		if (!strcmp (str_method, NM_SETTING_IP6_CONFIG_METHOD_IGNORE))
+			method = IP6_METHOD_IGNORE;
 		if (!strcmp (str_method, NM_SETTING_IP6_CONFIG_METHOD_AUTO))
 			method = IP6_METHOD_AUTO;
 		if (!strcmp (str_method, NM_SETTING_IP6_CONFIG_METHOD_DHCP))



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