From 2e6ae760a1e4349508875cfd664f1cf3a96b7065 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 26 May 2013 21:10:30 +0200 Subject: [PATCH] * Fix Logger with Qt5. --- src/libtomahawk/utils/Logger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/utils/Logger.cpp b/src/libtomahawk/utils/Logger.cpp index a5a5d1aed..457b881bd 100644 --- a/src/libtomahawk/utils/Logger.cpp +++ b/src/libtomahawk/utils/Logger.cpp @@ -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