File kdebase4-workspace-powerdevil-kconfig-cbce41f0.diff of Package kdebase4-workspace

commit cbce41f094753fe75e9abd9d2ccd1d45d18b7a89
Author: Aaron Seigo <aseigo@kde.org>
Date:   Tue Nov 1 10:22:37 2011 +0100

    cascade, but don't use globals
    
    BUG:285347

diff --git a/powerdevil/daemon/powerdevilcore.cpp b/powerdevil/daemon/powerdevilcore.cpp
index 202890e..e037cdd 100644
--- a/powerdevil/daemon/powerdevilcore.cpp
+++ b/powerdevil/daemon/powerdevilcore.cpp
@@ -88,7 +88,7 @@ void Core::onBackendReady()
 {
     kDebug() << "Backend is ready, KDE Power Management system initialized";
 
-    m_profilesConfig = KSharedConfig::openConfig("powerdevil2profilesrc", KConfig::FullConfig);
+    m_profilesConfig = KSharedConfig::openConfig("powerdevil2profilesrc", KConfig::CascadeConfig);
 
     // Is it brand new?
     if (m_profilesConfig->groupList().isEmpty()) {