Diffstat (limited to 'noncore/settings/networksettings2/profile/profilerun.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/profile/profilerun.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/settings/networksettings2/profile/profilerun.cpp b/noncore/settings/networksettings2/profile/profilerun.cpp index 77bf9ac..faa7d66 100644 --- a/noncore/settings/networksettings2/profile/profilerun.cpp +++ b/noncore/settings/networksettings2/profile/profilerun.cpp | |||
@@ -5,22 +5,22 @@ | |||
5 | State_t ProfileRun::detectState( void ) { | 5 | State_t ProfileRun::detectState( void ) { |
6 | 6 | ||
7 | Log(( "Profile %sabled\n", (Data->Disabled) ? "dis" : "en" )); | 7 | Log(( "Profile %sabled\n", (Data->Enabled) ? "en" : "dis" )); |
8 | 8 | ||
9 | if( Data->Disabled ) { | 9 | if( Data->Enabled ) { |
10 | return Disabled; | 10 | return Unknown; |
11 | } | 11 | } |
12 | return Unknown; | 12 | return Disabled; |
13 | } | 13 | } |
14 | 14 | ||
15 | QString ProfileRun::setMyState( NetworkSetup * NC, Action_t A, bool ) { | 15 | QString ProfileRun::setMyState( NetworkSetup * NC, Action_t A, bool ) { |
16 | odebug << "Profile " << Data->Disabled << oendl; | 16 | odebug << "Profile " << Data->Enabled << oendl; |
17 | if( A == Disable ) { | 17 | if( A == Disable ) { |
18 | if( ! Data->Disabled ) { | 18 | if( Data->Enabled ) { |
19 | Data->Disabled = 1; | 19 | Data->Enabled = 0; |
20 | NC->setModified( 1 ); | 20 | NC->setModified( 1 ); |
21 | } | 21 | } |
22 | } else if( A == Enable ) { | 22 | } else if( A == Enable ) { |
23 | if( Data->Disabled ) { | 23 | if( ! Data->Enabled ) { |
24 | Data->Disabled = 0; | 24 | Data->Enabled = 1; |
25 | NC->setModified( 1 ); | 25 | NC->setModified( 1 ); |
26 | } | 26 | } |