diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 000ec0349..1ad8e983b 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -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; }