From ab9b00969f4d6ae36558d52a39e5235e4019641f Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Aug 2009 07:33:38 +0000 Subject: [PATCH] Fix problem with running of several python scripts (runSalome aaa.py bbb.py) --- src/PythonConsole/PythonConsole_PyEditor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- 2.39.2