]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with running of several python scripts (runSalome aaa.py bbb.py)
authorvsr <vsr@opencascade.com>
Tue, 25 Aug 2009 07:33:38 +0000 (07:33 +0000)
committervsr <vsr@opencascade.com>
Tue, 25 Aug 2009 07:33:38 +0000 (07:33 +0000)
src/PythonConsole/PythonConsole_PyEditor.cxx

index d1669f6bed6bc0da01d2ddadd956e6b183af33c4..04cef84ce6dda749a2594cc0f6b3e127f0f707a0 100755 (executable)
@@ -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 )