summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/oglobalsettings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/opiecore/oglobalsettings.cpp b/libopie2/opiecore/oglobalsettings.cpp
index f34c531..89c77d7 100644
--- a/libopie2/opiecore/oglobalsettings.cpp
+++ b/libopie2/opiecore/oglobalsettings.cpp
@@ -29,16 +29,17 @@
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
31*/ 31*/
32 32
33/* OPIE */ 33/* OPIE */
34 34
35#include <opie2/oglobalsettings.h> 35#include <opie2/oglobalsettings.h>
36#include <opie2/oconfig.h> 36#include <opie2/oconfig.h>
37#include <opie2/odebug.h>
37#include <opie2/oglobal.h> 38#include <opie2/oglobal.h>
38 39
39/* QT */ 40/* QT */
40 41
41#include <qdir.h> 42#include <qdir.h>
42 43
43/* UNIX */ 44/* UNIX */
44 45
@@ -154,17 +155,17 @@ int OGlobalSettings::contextMenuKey ()
154 return 0; // FIXME 155 return 0; // FIXME
155} 156}
156 157
157 158
158OGlobalSettings::Debug OGlobalSettings::debugMode() 159OGlobalSettings::Debug OGlobalSettings::debugMode()
159{ 160{
160 OConfig *c = OGlobal::config(); 161 OConfig *c = OGlobal::config();
161 OConfigGroupSaver cgs( c, "General" ); 162 OConfigGroupSaver cgs( c, "General" );
162 int debug = c->readNumEntry( "debugMode", -1 ); 163 int debug = c->readNumEntry( "debugMode", ODEBUG_STDERR );
163 if ( (debug < (int) DebugNone) || (debug > (int) DebugSocket) ) 164 if ( (debug < (int) DebugNone) || (debug > (int) DebugSocket) )
164 { 165 {
165 debug = (int) DebugStdErr; // Default 166 debug = (int) DebugStdErr; // Default
166 } 167 }
167 return (Debug) debug; 168 return (Debug) debug;
168} 169}
169 170
170 171