From 8a5980eb24d85fa8e2acc0b7743c94a5a0bcd737 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 28 Jan 2009 21:15:43 +0000 Subject: [PATCH] show waiting cursor while ExecutionEnv is working --- src/extension/execution-env.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp index 539e0786a..4a13890d7 100644 --- a/src/extension/execution-env.cpp +++ b/src/extension/execution-env.cpp @@ -154,6 +154,8 @@ ExecutionEnv::workingCanceled( const int /*resp*/) { void ExecutionEnv::cancel (void) { + SPDesktop *desktop = (SPDesktop *)_doc; + desktop->clearWaitingCursor(); _effect->get_imp()->cancelProcessing(); return; } @@ -203,7 +205,10 @@ ExecutionEnv::run (void) { if (_show_working) { createWorkingDialog(); } + SPDesktop *desktop = (SPDesktop *)_doc; + desktop->setWaitingCursor(); _effect->get_imp()->effect(_effect, _doc, _docCache); + desktop->clearWaitingCursor(); _state = ExecutionEnv::COMPLETE; // _runComplete.signal(); return; -- 2.30.2