From 1d01a7585c112696ac657c453235c4fe05e11c57 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 15 Feb 2023 02:29:57 -0800 Subject: [PATCH] Qt: Fix loading a script leaving sync disabled --- src/platform/qt/scripting/ScriptingController.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platform/qt/scripting/ScriptingController.cpp b/src/platform/qt/scripting/ScriptingController.cpp index 5e92a81aa..8396a6a63 100644 --- a/src/platform/qt/scripting/ScriptingController.cpp +++ b/src/platform/qt/scripting/ScriptingController.cpp @@ -83,9 +83,11 @@ bool ScriptingController::load(VFileDevice& vf, const QString& name) { emit error(QString::fromUtf8(m_activeEngine->getError(m_activeEngine))); ok = false; } - if (m_controller && m_controller->isPaused()) { + if (m_controller) { m_controller->setSync(true); - m_controller->paused(); + if (m_controller->isPaused()) { + m_controller->paused(); + } } return ok; }