summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 33bea36..c4c6050 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -23,3 +23,2 @@
#include "launcher.h"
-//#include "mrulist.h"
#include "qcopbridge.h"
@@ -171,2 +170,3 @@ public:
m_enable_onlylcdoff_ac = false;
+ m_disable_apm_ac = false;
@@ -217,2 +217,6 @@ public:
case 2:
+ if ( m_disable_apm_ac && onAC ) {
+ return true;
+ }
+
if ( m_enable_onlylcdoff_ac && onAC ) {
@@ -275,3 +279,3 @@ public:
m_enable_lightoff = ( ( i2 != 0 ) ? config. readNumEntry ( "LightOff", 1 ) : false );
- m_enable_onlylcdoff = config. readNumEntry ( "LcdOffOnly", 0 );
+ m_enable_onlylcdoff = config.readNumEntry ( "LcdOffOnly", 0 );
@@ -302,2 +306,3 @@ public:
m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 );
+ m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 );
@@ -374,2 +379,3 @@ private:
bool m_enable_onlylcdoff_ac;
+ bool m_disable_apm_ac;