Skip to content

Commit

Permalink
Merge pull request #4750 from tuffnatty/scriptingqt-isinterrupted
Browse files Browse the repository at this point in the history
ScriptingQT: Fix seemingly nonfunctional code; fix building with pre-5.14 Qt versions
  • Loading branch information
pawelsalawa authored Apr 5, 2023
2 parents d7dc60e + b039597 commit c971c2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SQLiteStudio3/coreSQLiteStudio/plugins/scriptingqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ void ScriptingQt::deinit()
QMutexLocker locker(managedMainContextsMutex);
for (ContextQt*& ctx : managedMainContexts)
{
ctx->engine->isInterrupted();
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
ctx->engine->setInterrupted(true);
#else
// FIXME No way to cleanly interrupt QJSEngine before Qt 5.14
#endif
delete ctx;
}

Expand Down

0 comments on commit c971c2c

Please sign in to comment.