diff --git a/src/tomahawkapp.cpp b/src/tomahawkapp.cpp index d668cc012..8af6a0457 100644 --- a/src/tomahawkapp.cpp +++ b/src/tomahawkapp.cpp @@ -80,6 +80,9 @@ ofstream logfile; void TomahawkLogHandler( QtMsgType type, const char *msg ) { + static QMutex s_mutex; + + QMutexLocker locker( &s_mutex ); switch( type ) { case QtDebugMsg: