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:
parent
21d4f2b83a
commit
2e6ae760a1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user