1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

* Fix Logger with Qt5.

This commit is contained in:
Christian Muehlhaeuser 2013-05-26 21:10:30 +02:00
parent 21d4f2b83a
commit 2e6ae760a1

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