summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-08-15 17:02:25 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-08-15 17:02:25 +0000
commit426bfa8d037e458bd58a4c2dca82cbddae2a2f66 (patch)
treeae7250597cec8a9a1dcbd680e044204ca331cc27 /rbutil/rbutilqt/main.cpp
parent2402aecbb5eeb82c5920f9d837cd287581c11c05 (diff)
downloadrockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.tar.gz
rockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.tar.bz2
rockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.zip
rbutil: add a errorlog function into rbutil and the possibility to save a log if a error happens. (thanks to bluebrother for the trace functionality)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22329 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 0b720d60f6..086dc65ea6 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -20,13 +20,17 @@
#include <QtGui>
#include "rbutilqt.h"
+#include "systrace.h"
#ifdef STATIC
#include <QtPlugin>
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
#endif
+
+
int main( int argc, char ** argv ) {
+ qInstallMsgHandler(SysTrace::debug);
QApplication app( argc, argv );
#if defined(Q_OS_MAC)
QDir dir(QApplication::applicationDirPath());