mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 15:16:34 +02:00
* Fix Logger with Qt5.
This commit is contained in:
@@ -114,7 +114,8 @@ TomahawkLogHandler( QtMsgType type, const char* msg )
|
|||||||
static QMutex s_mutex;
|
static QMutex s_mutex;
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
#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
|
#else
|
||||||
const char* message = msg;
|
const char* message = msg;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user