summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-28 21:18:12 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-02-08 22:38:57 +0100
commit2dab7c97751d34cf6fc888305f949d290c292f48 (patch)
tree895a3c4e52543494203c87a72b4884ad7f8e8db0 /rbutil/rbutilqt/rbutilqt.cpp
parentd06779d9879e04964e533dd02e62e5c7007cb0b3 (diff)
downloadrockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.gz
rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.bz2
rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.zip
Create Qt5 compatible version of trace event handler.
Qt5 deprecates the way this was done before. Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 5ea5002c8f..c5cdeb1cf7 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -183,7 +183,11 @@ void RbUtilQt::shutdown(void)
// restore default message handler to prevent trace accesses during
// object destruction -- the trace object could already be destroyed.
// Fixes segfaults on exit.
+#if QT_VERSION < 0x050000
qInstallMsgHandler(0);
+#else
+ qInstallMessageHandler(0);
+#endif
SysTrace::save();
this->close();
}