History

add Q_ASSERT to IS_THREADSAFE_INVOCATION

humbletim committed 9 years ago

Commit 366c90e1 parent 52a57151 file · +1 −0Browse files

Showing the changes to libraries/shared/src/BaseScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/shared/src/BaseScriptEngine.cpp+1−0
@@ -31,6 +31,7 @@ bool BaseScriptEngine::IS_THREADSAFE_INVOCATION(const QThread *thread, const QSt · 30 unmodified lines
3131 qCCritical(shared) << QString("Scripting::%1 @ %2 -- ignoring thread-unsafe call from %3")
3232 .arg(method).arg(thread ? thread->objectName() : "(!thread)").arg(QThread::currentThread()->objectName());
3333 qCDebug(shared) << "(please resolve on the calling side by using invokeMethod, executeOnScriptThread, etc.)";
34+ Q_ASSERT(false);
3435 return false;
3536 }
3637