[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/io
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-05-12 15:30:13
Message-ID: 20100512153013.8E8FDAC8B4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1125871 by lunakl:

When writing to kdebugrc whether debug output is enabled or disabled,
do so only for kDebug(), since kWarning() etc. are enabled even in release
build. This prevents debug output from getting enabled by default in release
builds when an app calls kWarning() before first kDebug().
CCBUG: 227089



 M  +1 -1      kdebug.cpp  


--- trunk/KDE/kdelibs/kdecore/io/kdebug.cpp #1125870:1125871
@@ -411,7 +411,7 @@
             return cache.find(0);
         }
 
-        if (num == 0) { // area 0 is special, it becomes the named area "appname"
+        if (num == 0 && type == QtDebugMsg) { // area 0 is special, it becomes the named area "appname"
             static bool s_firstDebugFromApplication = true;
             if (s_firstDebugFromApplication && !m_disableAll) {
                 s_firstDebugFromApplication = false;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic