From b039597a0e04be63160286df582254b86269b656 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Wed, 5 Apr 2023 17:25:19 +0200 Subject: [PATCH] ScriptingQT: Fix seemingly nonfunctional code; fix building with pre-5.14 QT versions. --- SQLiteStudio3/coreSQLiteStudio/plugins/scriptingqt.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SQLiteStudio3/coreSQLiteStudio/plugins/scriptingqt.cpp b/SQLiteStudio3/coreSQLiteStudio/plugins/scriptingqt.cpp index 1ed7c6b548..5305f2444e 100644 --- a/SQLiteStudio3/coreSQLiteStudio/plugins/scriptingqt.cpp +++ b/SQLiteStudio3/coreSQLiteStudio/plugins/scriptingqt.cpp @@ -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; }