diff --git a/src/libtomahawk/resolvers/qtscriptresolver.cpp b/src/libtomahawk/resolvers/qtscriptresolver.cpp index f9939964c..5568fe9a4 100644 --- a/src/libtomahawk/resolvers/qtscriptresolver.cpp +++ b/src/libtomahawk/resolvers/qtscriptresolver.cpp @@ -20,6 +20,7 @@ #include "artist.h" #include "album.h" +#include "config.h" #include "pipeline.h" #include "sourcelist.h" #include "utils/tomahawkutils.h" @@ -192,10 +193,8 @@ void ScriptEngine::javaScriptConsoleMessage( const QString& message, int lineNumber, const QString& sourceID ) { tLog() << "JAVASCRIPT:" << m_scriptPath << message << lineNumber << sourceID; - /// I guess there is somereason for a assert in here, maybe fatal js errors, but - /// undefined is not so fatal #ifndef ENABLE_HEADLESS -#ifdef QT_DEBUG +#ifdef DEBUG_BUILD QMessageBox::critical( 0, "Script Resolver Error", QString( "%1 %2 %3 %4" ).arg( m_scriptPath ).arg( message ).arg( lineNumber ).arg( sourceID ) ); #endif #endif