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

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/kernel
From:       Parker Coates <parker.coates () kdemail ! net>
Date:       2010-05-29 19:32:30
Message-ID: 20100529193230.74EE2AC8C3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1132121 by coates:

Don't bother checking qAppName() if we don't have a QCoreApplication.

This avoids warnings of the form "QApplication::qAppName: Please
instantiate the QApplication object first".

CCMAIL:aacid@kde.org


 M  +1 -1      kglobal.cpp  


--- trunk/KDE/kdelibs/kdecore/kernel/kglobal.cpp #1132120:1132121
@@ -104,7 +104,7 @@
         static KComponentData initFakeComponent()
         {
             QString name = QCoreApplication::applicationName();
-            if(name.isEmpty())
+            if(name.isEmpty() && QCoreApplication::instance())
                 name = qAppName();
             if(name.isEmpty())
                 name = QString::fromLatin1("kde");
[prev in list] [next in list] [prev in thread] [next in thread] 

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