]> SALOME platform Git repositories - modules/gui.git/commit
Salome HOME
NPAL15963 (Problem with option -u (--execute) of runSalome).
authoreap <eap@opencascade.com>
Mon, 21 May 2007 10:16:18 +0000 (10:16 +0000)
committereap <eap@opencascade.com>
Mon, 21 May 2007 10:16:18 +0000 (10:16 +0000)
commit7b2f965eb70ddcb508db687f22145dd0ab412427
tree03c92d3031ae6f142913d47d60f237f7090c8765
parent1919fedb6452083339a0ee6c48f83678174c6ac9
NPAL15963 (Problem with option -u (--execute) of runSalome).
void PythonConsole_PyEditor::exec( const QString& command )
-  setText( command + "\n" );
-  handleReturn();
+  // 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 ));
src/PythonConsole/PythonConsole_PyEditor.cxx