From 2e6a6b77ef701c39728919bdaca1a07c0977c9bd Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sun, 9 Dec 2012 14:55:38 +0100 Subject: [PATCH] Show JavaScript-error-popups for Tomahawk debug builds instead of Qt debug builds --- src/libtomahawk/resolvers/QtScriptResolver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/resolvers/QtScriptResolver.cpp b/src/libtomahawk/resolvers/QtScriptResolver.cpp index 5923a08fe..2c727d5af 100644 --- a/src/libtomahawk/resolvers/QtScriptResolver.cpp +++ b/src/libtomahawk/resolvers/QtScriptResolver.cpp @@ -38,6 +38,8 @@ #include "utils/TomahawkUtilsGui.h" #include "utils/Logger.h" +#include "config.h" + // FIXME: bloody hack, remove this for 0.3 // this one adds new functionality to old resolvers #define RESOLVER_LEGACY_CODE "var resolver = Tomahawk.resolver.instance ? Tomahawk.resolver.instance : TomahawkResolver;" @@ -212,7 +214,7 @@ void ScriptEngine::javaScriptConsoleMessage( const QString& message, int lineNumber, const QString& sourceID ) { tLog() << "JAVASCRIPT:" << m_scriptPath << message << lineNumber << sourceID; -#ifndef QT_NO_DEBUG +#ifndef DEBUG_BUILD QMessageBox::critical( 0, "Script Resolver Error", QString( "%1 %2 %3 %4" ).arg( m_scriptPath ).arg( message ).arg( lineNumber ).arg( sourceID ) ); #endif }