network-manager-applet r767 - trunk/src/connection-editor



Author: dcbw
Date: Thu Jun 26 17:11:43 2008
New Revision: 767
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=767&view=rev

Log:
Always add VPN properties setting; otherwise the connection is useless

Modified:
   trunk/src/connection-editor/nm-connection-list.c

Modified: trunk/src/connection-editor/nm-connection-list.c
==============================================================================
--- trunk/src/connection-editor/nm-connection-list.c	(original)
+++ trunk/src/connection-editor/nm-connection-list.c	Thu Jun 26 17:11:43 2008
@@ -49,6 +49,7 @@
 #include <nm-setting-wired.h>
 #include <nm-setting-wireless.h>
 #include <nm-setting-vpn.h>
+#include <nm-setting-vpn-properties.h>
 #include <nm-setting-gsm.h>
 #include <nm-setting-cdma.h>
 #include <nm-setting-pppoe.h>
@@ -810,6 +811,8 @@
 			type_setting = nm_setting_vpn_new ();
 			s_vpn = NM_SETTING_VPN (type_setting);
 			s_vpn->service_type = service;
+
+			nm_connection_add_setting (connection, nm_setting_vpn_properties_new ());
 		}		
 	} else if (ctype == NM_TYPE_SETTING_PPPOE) {
 		s_con->id = get_next_available_name (list, _("DSL connection %d"));



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