1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

Merge pull request #46 from hugolm84/charts

Dont always assert on js failure
This commit is contained in:
Hugo Lindström
2011-10-12 10:02:21 -07:00

View File

@@ -184,7 +184,11 @@ void
ScriptEngine::javaScriptConsoleMessage( const QString& message, int lineNumber, const QString& sourceID ) ScriptEngine::javaScriptConsoleMessage( const QString& message, int lineNumber, const QString& sourceID )
{ {
tLog() << "JAVASCRIPT:" << m_scriptPath << message << lineNumber << sourceID; tLog() << "JAVASCRIPT:" << m_scriptPath << message << lineNumber << sourceID;
Q_ASSERT( false ); /// I guess there is somereason for a assert in here, maybe fatal js errors, but
/// undefined is not so fatal
if(sourceID != "undefined")
Q_ASSERT( false );
} }