From 9fe3b05f33eb20b690340339c871739ded796420 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 28 Jan 2009 21:15:43 +0000 Subject: show waiting cursor while ExecutionEnv is working (bzr r7199) --- src/extension/execution-env.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/extension/execution-env.cpp') 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; -- cgit v1.2.3