-rw-r--r-- | microkde/kglobal.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/microkde/kglobal.cpp b/microkde/kglobal.cpp index 0aba952..6fa0dd6 100644 --- a/microkde/kglobal.cpp +++ b/microkde/kglobal.cpp | |||
@@ -1,2 +1,3 @@ | |||
1 | #include "kglobal.h" | 1 | #include "kglobal.h" |
2 | #include "kstandarddirs.h" | ||
2 | #include <qkeycode.h> | 3 | #include <qkeycode.h> |
@@ -30,4 +31,11 @@ KConfig *KGlobal::config() | |||
30 | { | 31 | { |
32 | static bool reentrant = false; | ||
33 | |||
34 | if (reentrant) | ||
35 | return 0; | ||
36 | |||
31 | if ( !mConfig ) { | 37 | if ( !mConfig ) { |
32 | mConfig = new KConfig( KStandardDirs::appDir() + mAppName + "rc" ); | 38 | reentrant = true; |
39 | mConfig = new KConfig( locateLocal("config", mAppName + "rc" ) ); | ||
40 | reentrant = false; | ||
33 | } | 41 | } |