[rkward-cvs] SF.net SVN: rkward:[3556] trunk/rkward/rkward/main.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sun May 15 14:29:35 UTC 2011


Revision: 3556
          http://rkward.svn.sourceforge.net/rkward/?rev=3556&view=rev
Author:   tfry
Date:     2011-05-15 14:29:35 +0000 (Sun, 15 May 2011)

Log Message:
-----------
Show location of debug output at the start, not at exit (will not be shown in case of a crash, otherwise)

Modified Paths:
--------------
    trunk/rkward/rkward/main.cpp

Modified: trunk/rkward/rkward/main.cpp
===================================================================
--- trunk/rkward/rkward/main.cpp	2011-05-13 11:21:52 UTC (rev 3555)
+++ trunk/rkward/rkward/main.cpp	2011-05-15 14:29:35 UTC (rev 3556)
@@ -156,7 +156,10 @@
 	// install message handler *after* the componentData has been initialized
 	RKSettingsModuleDebug::debug_file = new KTemporaryFile ();
 	RKSettingsModuleDebug::debug_file->setAutoRemove (false);
-	if (RKSettingsModuleDebug::debug_file->open ()) qInstallMsgHandler (RKDebugMessageOutput);
+	if (RKSettingsModuleDebug::debug_file->open ()) {
+		RK_DO (qDebug ("Full debug output is at %s", qPrintable (RKSettingsModuleDebug::debug_file->fileName ())), APP, DL_INFO);
+		qInstallMsgHandler (RKDebugMessageOutput);
+	}
 
 	if (app.isSessionRestored ()) {
 		RESTORE(RKWardMainWindow);	// well, whatever this is supposed to do -> TODO
@@ -174,7 +177,6 @@
 	int status = app.exec ();
 
 	qInstallMsgHandler (0);
-	RK_DO (qDebug ("Full debug output is at %s", qPrintable (RKSettingsModuleDebug::debug_file->fileName ())), APP, DL_INFO);
 	RKSettingsModuleDebug::debug_file->close ();
 
 #ifdef Q_WS_WIN


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list