From: vsr Date: Fri, 24 Oct 2014 14:00:15 +0000 (+0400) Subject: IPAL52550: TC7.5.0: Cursor is in waiting mode after "Update Study" X-Git-Tag: V7_5_0b1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=328a05cb231036f6db937a4850af0b07cf50d05a;p=modules%2Fgui.git IPAL52550: TC7.5.0: Cursor is in waiting mode after "Update Study" --- diff --git a/src/PyConsole/PyConsole_Editor.cxx b/src/PyConsole/PyConsole_Editor.cxx index 66aaf5b9b..42ea63e4f 100644 --- a/src/PyConsole/PyConsole_Editor.cxx +++ b/src/PyConsole/PyConsole_Editor.cxx @@ -396,14 +396,21 @@ void PyConsole_Editor::execAndWait( const QString& command ) return; // create new event loop - myEventLoop = new QEventLoop( this ); + bool sync = isSync(); + if ( !sync ) { + myEventLoop = new QEventLoop( this ); + } + // execute command exec( command ); - // run event loop - myEventLoop->exec(); - // delete event loop after command is processed - delete myEventLoop; - myEventLoop = 0; + + if ( !sync ) { + // run event loop + myEventLoop->exec(); + // delete event loop after command is processed + delete myEventLoop; + myEventLoop = 0; + } } /*!