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
31 qCCritical(shared) << QString("Scripting::%1 @ %2 -- ignoring thread-unsafe call from %3")31 qCCritical(shared) << QString("Scripting::%1 @ %2 -- ignoring thread-unsafe call from %3")
32 .arg(method).arg(thread ? thread->objectName() : "(!thread)").arg(QThread::currentThread()->objectName());32 .arg(method).arg(thread ? thread->objectName() : "(!thread)").arg(QThread::currentThread()->objectName());
33 qCDebug(shared) << "(please resolve on the calling side by using invokeMethod, executeOnScriptThread, etc.)";33 qCDebug(shared) << "(please resolve on the calling side by using invokeMethod, executeOnScriptThread, etc.)";
34 Q_ASSERT(false);
34 return false;35 return false;
35}36}
36 37