Qt: Fix loading a script leaving sync disabled

This commit is contained in:
Vicki Pfau 2023-02-15 02:29:57 -08:00
parent a473aeff2c
commit 1d01a7585c
1 changed files with 4 additions and 2 deletions

View File

@ -83,9 +83,11 @@ bool ScriptingController::load(VFileDevice& vf, const QString& name) {
emit error(QString::fromUtf8(m_activeEngine->getError(m_activeEngine))); emit error(QString::fromUtf8(m_activeEngine->getError(m_activeEngine)));
ok = false; ok = false;
} }
if (m_controller && m_controller->isPaused()) { if (m_controller) {
m_controller->setSync(true); m_controller->setSync(true);
m_controller->paused(); if (m_controller->isPaused()) {
m_controller->paused();
}
} }
return ok; return ok;
} }