core: don't wipe out VPN secrets if we're changing the connection

The VPN secret properties are hashes and thus the default property value does
not work with them.
This commit is contained in:
Lubomir Rintel
2014-11-22 09:58:52 +01:00
parent a3f9e51927
commit dfdcbfe115

View File

@@ -1229,6 +1229,12 @@ has_some_secrets_cb (NMSetting *setting,
{
GParamSpec *pspec;
if (NM_IS_SETTING_VPN (setting)) {
if (nm_setting_vpn_get_num_secrets (NM_SETTING_VPN(setting)))
*((gboolean *) user_data) = TRUE;
return;
}
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (G_OBJECT (setting)), key);
if (pspec) {
if ( (flags & NM_SETTING_PARAM_SECRET)