author | wimpie <wimpie> | 2005-01-12 01:55:32 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-12 01:55:32 (UTC) |
commit | c48160f6ac67b2f2fc4b6f982b641861ad078237 (patch) (unidiff) | |
tree | 2922ac7b627091ef32f36d4e8b32630c255b00e1 /noncore/settings/networksettings2/profile/profilerun.cpp | |
parent | f9a83585111afa08a47176097a150d9f468bfcdf (diff) | |
download | opie-c48160f6ac67b2f2fc4b6f982b641861ad078237.zip opie-c48160f6ac67b2f2fc4b6f982b641861ad078237.tar.gz opie-c48160f6ac67b2f2fc4b6f982b641861ad078237.tar.bz2 |
Fixed problem with enabling profile from edit environment
rename disable to enable (much more clear)
Diffstat (limited to 'noncore/settings/networksettings2/profile/profilerun.cpp') (more/less context) (show 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 | |||
@@ -4,24 +4,24 @@ | |||
4 | 4 | ||
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; | ||
11 | } | ||
12 | return Unknown; | 10 | return Unknown; |
13 | } | 11 | } |
12 | return Disabled; | ||
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 | } |
27 | } | 27 | } |