Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index d2618d9..bf94a21 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -79,5 +79,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
79 | interval = config.readNumEntry( "Interval_Dim", 20 ); | 79 | interval = config.readNumEntry( "Interval_Dim", 20 ); |
80 | if ( config.readNumEntry("Dim",1) == 0 ) { | 80 | if ( config.readNumEntry("Dim",1) == 0 ) { |
81 | interval_dim->setSpecialValueText( tr("never") ); | 81 | interval_dim->setValue( 0 ); |
82 | } else { | 82 | } else { |
83 | interval_dim->setValue( interval ); | 83 | interval_dim->setValue( interval ); |
@@ -86,5 +86,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
86 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 86 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
87 | if ( config.readNumEntry("LightOff",1) == 0 ) { | 87 | if ( config.readNumEntry("LightOff",1) == 0 ) { |
88 | interval_lightoff->setSpecialValueText( tr("never") ); | 88 | interval_lightoff->setValue( 0 ); |
89 | } else { | 89 | } else { |
90 | interval_lightoff->setValue( interval ); | 90 | interval_lightoff->setValue( interval ); |
@@ -94,6 +94,6 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
94 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) | 94 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) |
95 | 95 | ||
96 | if ( config.readNumEntry("NoApm", 0) == 0 ) { | 96 | if ( config.readNumEntry("NoApm", 0 ) == 1 ) { |
97 | interval_suspend->setSpecialValueText( tr("never") ); | 97 | interval_suspend->setValue( 0 ); |
98 | } else { | 98 | } else { |
99 | interval_suspend->setValue( interval ); | 99 | interval_suspend->setValue( interval ); |
@@ -119,5 +119,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
119 | interval = config.readNumEntry( "Interval_Dim", 20 ); | 119 | interval = config.readNumEntry( "Interval_Dim", 20 ); |
120 | if ( config.readNumEntry("Dim",1) == 0 ) { | 120 | if ( config.readNumEntry("Dim",1) == 0 ) { |
121 | interval_dim_ac_3->setSpecialValueText( tr("never") ); | 121 | interval_dim_ac_3->setValue( 0 ); |
122 | } else { | 122 | } else { |
123 | interval_dim_ac_3->setValue( interval ); | 123 | interval_dim_ac_3->setValue( interval ); |
@@ -126,5 +126,5 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
126 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 126 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
127 | if ( config.readNumEntry("LightOff",1) == 0 ) { | 127 | if ( config.readNumEntry("LightOff",1) == 0 ) { |
128 | interval_lightoff_ac_3->setSpecialValueText( tr("never") ); | 128 | interval_lightoff_ac_3->setValue( 0 ); |
129 | } else { | 129 | } else { |
130 | interval_lightoff_ac_3->setValue( interval ); | 130 | interval_lightoff_ac_3->setValue( interval ); |
@@ -135,6 +135,6 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
135 | interval /= 1000; // compatibility (was millisecs) | 135 | interval /= 1000; // compatibility (was millisecs) |
136 | } | 136 | } |
137 | if ( config.readNumEntry("NoApm", 0) == 0 ) { | 137 | if ( config.readNumEntry("NoApm", 1) == 1 ) { |
138 | interval_suspend_ac_3->setSpecialValueText( tr("never") ); | 138 | interval_suspend_ac_3->setValue( 0 ); |
139 | } else { | 139 | } else { |
140 | interval_suspend_ac_3->setValue( interval ); | 140 | interval_suspend_ac_3->setValue( interval ); |