Skip to content

Commit

Permalink
Qt: Fix loading a script leaving sync disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Feb 15, 2023
1 parent 0b17a40 commit 6f14732
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/qt/scripting/ScriptingController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,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;
}
Expand Down

0 comments on commit 6f14732

Please sign in to comment.