commit 95ffcc62a0ede2c5541293422fdf7a2e306b69bb Author: Dan Williams <dcbw@redhat.com> Date: Thu Feb 12 23:57:41 2009 +0000 src/connection-editor/vpn-helpers.c - (export_vpn_to_file_cb): fix export 2009-02-12 Dan Williams <dcbw@redhat.com> * src/connection-editor/vpn-helpers.c - (export_vpn_to_file_cb): fix export validtity checks (rh #480496) svn path=/branches/NETWORKMANAGER_APPLET_0_7/; revision=1157 diff -up NetworkManager-0.7.0/network-manager-applet-0.7.0/src/connection-editor/vpn-helpers.c.foo NetworkManager-0.7.0/network-manager-applet-0.7.0/src/connection-editor/vpn-helpers.c --- NetworkManager-0.7.0/network-manager-applet-0.7.0/src/connection-editor/vpn-helpers.c.foo 2009-05-04 12:06:44.000000000 -0400 +++ NetworkManager-0.7.0/network-manager-applet-0.7.0/src/connection-editor/vpn-helpers.c 2009-05-04 12:07:38.000000000 -0400 @@ -326,10 +326,10 @@ export_vpn_to_file_cb (GtkWidget *dialog goto done; } - s_vpn = NM_SETTING_VPN (nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN)); + s_vpn = (NMSettingVPN *) nm_connection_get_setting (connection, NM_TYPE_SETTING_VPN); service_type = s_vpn ? nm_setting_vpn_get_service_type (s_vpn) : NULL; - if (service_type) { + if (!service_type) { g_set_error (&error, 0, 0, "VPN setting invalid"); goto done; }