Diffstat (limited to 'noncore/settings/networksettings2/profile/profile_NNI.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/profile/profile_NNI.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/settings/networksettings2/profile/profile_NNI.cpp b/noncore/settings/networksettings2/profile/profile_NNI.cpp index fc2d809..0bc13d1 100644 --- a/noncore/settings/networksettings2/profile/profile_NNI.cpp +++ b/noncore/settings/networksettings2/profile/profile_NNI.cpp | |||
@@ -9,5 +9,5 @@ AProfile::AProfile( ProfileNetNode * PNN ) : ANetNodeInstance( PNN ) { | |||
9 | Data.Confirm = 0; | 9 | Data.Confirm = 0; |
10 | Data.Description = ""; | 10 | Data.Description = ""; |
11 | Data.Disabled = 0; | 11 | Data.Enabled = 1; |
12 | Data.TriggerVPN = 0; | 12 | Data.TriggerVPN = 0; |
13 | GUI = 0; | 13 | GUI = 0; |
@@ -22,5 +22,7 @@ void AProfile::setSpecificAttribute( QString & Attr, QString & Value ) { | |||
22 | Data.Confirm = (Value=="yes"); | 22 | Data.Confirm = (Value=="yes"); |
23 | } else if ( Attr == "disabled" ) { | 23 | } else if ( Attr == "disabled" ) { |
24 | Data.Disabled = (Value=="yes"); | 24 | Data.Enabled = (Value=="no"); |
25 | } else if ( Attr == "enabled" ) { | ||
26 | Data.Enabled = (Value=="yes"); | ||
25 | } else if ( Attr == "triggervpn" ) { | 27 | } else if ( Attr == "triggervpn" ) { |
26 | Data.TriggerVPN = (Value=="yes"); | 28 | Data.TriggerVPN = (Value=="yes"); |
@@ -33,5 +35,5 @@ void AProfile::saveSpecificAttribute( QTextStream & TS ) { | |||
33 | TS << "automatic=" << ((Data.Automatic) ? "yes" : "no") << endl; | 35 | TS << "automatic=" << ((Data.Automatic) ? "yes" : "no") << endl; |
34 | TS << "preconfirm=" << ((Data.Confirm) ? "yes" : "no") << endl; | 36 | TS << "preconfirm=" << ((Data.Confirm) ? "yes" : "no") << endl; |
35 | TS << "disabled=" << ((Data.Disabled) ? "yes" : "no") << endl; | 37 | TS << "enabled=" << ((Data.Enabled) ? "yes" : "no") << endl; |
36 | TS << "triggervpn=" << ((Data.TriggerVPN) ? "yes" : "no") << endl; | 38 | TS << "triggervpn=" << ((Data.TriggerVPN) ? "yes" : "no") << endl; |
37 | TS << "description=" << Data.Description << endl; | 39 | TS << "description=" << Data.Description << endl; |