Skip to content

Commit

Permalink
Avoid potentialy leaving updates/rendering disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed May 6, 2024
1 parent 60c8311 commit 0824432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/mainwindow.cpp
Expand Up @@ -2430,7 +2430,7 @@ bool MainWindow::runEventHandlerScript(const QString &script, const QVariantMap
const bool hasUpdatesEnabled = updatesEnabled();
setUpdatesEnabled(false);
action->waitForFinished();
setUpdatesEnabled(hasUpdatesEnabled);
setUpdatesEnabled(hasUpdatesEnabled || updatesEnabled());
++m_maxEventHandlerScripts;
return !action->actionFailed() && action->exitCode() == 0;
}
Expand Down

0 comments on commit 0824432

Please sign in to comment.