-rw-r--r-- | core/launcher/desktop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 986ae5d..2ea6d27 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -306,24 +306,25 @@ public: | |||
306 | m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 ); | 306 | m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 ); |
307 | m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 ); | 307 | m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 ); |
308 | 308 | ||
309 | if ( !i1 && !i2 && !i3 ) | 309 | if ( !i1 && !i2 && !i3 ) |
310 | QWSServer::setScreenSaverInterval( 0 ); | 310 | QWSServer::setScreenSaverInterval( 0 ); |
311 | else | 311 | else |
312 | QWSServer::setScreenSaverIntervals( v ); | 312 | QWSServer::setScreenSaverIntervals( v ); |
313 | } | 313 | } |
314 | 314 | ||
315 | void setInterval ( int interval ) | 315 | void setInterval ( int interval ) |
316 | { | 316 | { |
317 | setIntervals ( -1, -1, interval ); | 317 | setIntervals ( -1, -1, interval ); |
318 | setIntervalsAC ( -1, -1, interval ); | ||
318 | } | 319 | } |
319 | 320 | ||
320 | void setMode ( int mode ) | 321 | void setMode ( int mode ) |
321 | { | 322 | { |
322 | if ( mode > m_disable_suspend ) | 323 | if ( mode > m_disable_suspend ) |
323 | setInterval( -1 ); | 324 | setInterval( -1 ); |
324 | m_disable_suspend = mode; | 325 | m_disable_suspend = mode; |
325 | } | 326 | } |
326 | 327 | ||
327 | void setBacklight ( int bright ) | 328 | void setBacklight ( int bright ) |
328 | { | 329 | { |
329 | // Read from config | 330 | // Read from config |