From: vsr Date: Tue, 25 Aug 2009 07:33:38 +0000 (+0000) Subject: Fix problem with running of several python scripts (runSalome aaa.py bbb.py) X-Git-Tag: V4_1_0_maintainance_FINAL~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab9b00969f4d6ae36558d52a39e5235e4019641f;p=modules%2Fgui.git Fix problem with running of several python scripts (runSalome aaa.py bbb.py) --- diff --git a/src/PythonConsole/PythonConsole_PyEditor.cxx b/src/PythonConsole/PythonConsole_PyEditor.cxx index d1669f6be..04cef84ce 100755 --- a/src/PythonConsole/PythonConsole_PyEditor.cxx +++ b/src/PythonConsole/PythonConsole_PyEditor.cxx @@ -211,7 +211,8 @@ void PythonConsole_PyEditor::exec( const QString& command ) // Let events creating a study end before script execution starts setText( command /*+ "\n"*/ ); //handleReturn(); - qApp->postEvent( this, new QKeyEvent(QEvent::KeyPress,Key_Return,13,Qt::NoButton )); + QKeyEvent ke(QEvent::KeyPress,Key_Return,13,Qt::NoButton ); + qApp->sendEvent( this, &ke ); } void PythonConsole_PyEditor::execAndWait( const QString& command )