1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02:00

* Fix Logger with Qt5.

This commit is contained in:
Christian Muehlhaeuser
2013-05-26 21:10:30 +02:00
committed by Michael Zanetti
parent 3e06803162
commit 530d5402a1

View File

@@ -114,7 +114,8 @@ TomahawkLogHandler( QtMsgType type, const char* msg )
static QMutex s_mutex;
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
const char* message = msg.toLatin1().constData();
QByteArray ba = msg.toUtf8();
const char* message = ba.constData();
#else
const char* message = msg;
#endif