From 328a05cb231036f6db937a4850af0b07cf50d05a Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 24 Oct 2014 18:00:15 +0400 Subject: [PATCH] IPAL52550: TC7.5.0: Cursor is in waiting mode after "Update Study" --- src/PyConsole/PyConsole_Editor.cxx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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; + } } /*! -- 2.39.2