[education/labplot] src/frontend/script: [scripting] make sure the wait cursor is shown right away, before the blocking script execution starts.
Alexander Semke <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit f33a14a7a7a5855a1fd890d5b28c789e79c2d4cb by Alexander Semke.
Committed on 07/08/2026 at 16:03.
Pushed by asemke into branch 'master'.
[scripting] make sure the wait cursor is shown right away, before the blocking script execution starts.
M +2 -0 src/frontend/script/ScriptEditor.cpp
https://invent.kde.org/education/labplot/-/commit/f33a14a7a7a5855a1fd890d5b28c789e79c2d4cb
diff --git a/src/frontend/script/ScriptEditor.cpp b/src/frontend/script/ScriptEditor.cpp
index 74a0988cde..835c0ae2e0 100644
--- a/src/frontend/script/ScriptEditor.cpp
+++ b/src/frontend/script/ScriptEditor.cpp
@@ -195,6 +195,8 @@ void ScriptEditor::unregisterShortcuts() {
// #################################### SLOTs ################################
// ##############################################################################
void ScriptEditor::run() {
+ WAIT_CURSOR_AUTO_RESET;
+ QApplication::processEvents(QEventLoop::ExcludeUserInputEvents); // make sure the wait cursor is shown right away, before the blocking script execution starts
m_script->runScript();
}