From 366bfa3f33c505b164f379afc18dde1fcc1d57bd Mon Sep 17 00:00:00 2001 From: smh Date: Tue, 11 May 2004 05:47:50 +0000 Subject: [PATCH] Fix on Bug KERNEL5851 - V1.4.1 : bug in embedded Python interpretor --- src/SALOMEGUI/QAD_PyEditor.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SALOMEGUI/QAD_PyEditor.cxx b/src/SALOMEGUI/QAD_PyEditor.cxx index f344a3b3d..72e22033e 100644 --- a/src/SALOMEGUI/QAD_PyEditor.cxx +++ b/src/SALOMEGUI/QAD_PyEditor.cxx @@ -138,6 +138,9 @@ protected: anId = QAD_PyEditor::PYTHON_INCOMPLETE; myListener->myError = myInterp->getverr().c_str(); myListener->myOutput = myInterp->getvout().c_str(); + }else{ + myListener->myError = ""; + myListener->myOutput = ""; } QThread::postEvent(myListener, new QCustomEvent(anId)); QThread::postEvent(myListener, new QCustomEvent(QAD_PyEditor::UNSET_CURSOR)); -- 2.39.2