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

List:       kde-commits
Subject:    [plasmate/terietor/konsolepreviewer] /: Minor fixes in main.cpp
From:       Giorgos Tsiapaliokas <terietor () gmail ! com>
Date:       2012-08-16 7:46:06
Message-ID: 20120816074606.AA449A60C6 () git ! kde ! org
[Download RAW message or body]

Git commit 6b5514b5f4f0f6b8a5a8b99cc21f5c2e6a82bd66 by Giorgos Tsiapaliokas.
Committed on 16/08/2012 at 09:04.
Pushed by tsiapaliwkas into branch 'terietor/konsolepreviewer'.

Minor fixes in main.cpp

M  +6    -2    main.cpp

http://commits.kde.org/plasmate/6b5514b5f4f0f6b8a5a8b99cc21f5c2e6a82bd66

diff --git a/main.cpp b/main.cpp
index 1358ac1..720c819 100644
--- a/main.cpp
+++ b/main.cpp
@@ -17,6 +17,7 @@ along with this program.  If not, see <http://www.gnu.org=
/licenses/>.
 =

 #include <QPointer>
 =

+#include <KDebug>
 #include <KApplication>
 #include <KAboutData>
 #include <KLocale>
@@ -30,13 +31,16 @@ void customMessageHandler(QtMsgType type, const char *m=
sg)
 {
     if (mainwindow) {
         mainwindow->emitSendMessage(type, msg);
+    } else {
+        kDebug() << "*****************************************************=
";
+        kDebug() << "Plasmate has fails to set a qInstallMsgHandler!!!!!!!=
";
+        kDebug() << "*****************************************************=
";
+        exit(0);
     }
 }
 =

 int main(int argc, char *argv[])
 {
-    qInstallMsgHandler(customMessageHandler);
-
     KAboutData aboutData("plasmate", 0, ki18n("Plasmate"),
                          "0.1alpha3", ki18n("Plasma Add-Ons Creator"),
                          KAboutData::License_GPL,

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

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