Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -130,12 +130,7 @@ static QScriptValue debugPrint(QScriptContext* context, QScriptEngine* engine) { · 129 unmodified lines | ||
| 130 | 130 | // This message was sent by one of our script engines, let's try to see if we can find the source. |
| 131 | 131 | // Note that the first entry in the backtrace should be "print" and is somewhat useless to us |
| 132 | 132 | AbstractLoggerInterface* loggerInterface = AbstractLoggerInterface::get(); |
| 133 | − if (!loggerInterface) { | |
| 134 | − qCDebug(scriptengine_script, "%s", qUtf8Printable(message)); | |
| 135 | − return QScriptValue(); | |
| 136 | − } | |
| 137 | − | |
| 138 | − if (loggerInterface->showSourceDebugging()) { | |
| 133 | + if (loggerInterface && loggerInterface->showSourceDebugging()) { | |
| 139 | 134 | QScriptContext* userContext = context; |
| 140 | 135 | while (userContext && QScriptContextInfo(userContext).functionType() == QScriptContextInfo::NativeFunction) { |
| 141 | 136 | userContext = userContext->parentContext(); |