From b6cea7ff0cb49907f0b66d5d8f3562256d69d350 Mon Sep 17 00:00:00 2001 From: smh Date: Fri, 21 May 2004 13:53:40 +0000 Subject: [PATCH] For possibility to edit incorrect python function after running dataflow with inline node. --- src/SUPERVGUI/SUPERVGUI_Main.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index b67cf26..6dc5b61 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -444,18 +444,21 @@ void SUPERVGUI_Main::run() { //if (myIsRunned) { if (!dataflow->ReRun()) { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_DF_BADEXECUTE")); + if (dataflow->State() == SUPERV::ErrorState) { + kill(); + } } else { myThread->startThread(tr("MSG_GRAPH_STARTED")); - //syncNotification(); sync(); } } else { if (!dataflow->Run()) { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_DF_BADEXECUTE")); + if (dataflow->State() == SUPERV::ErrorState) { + kill(); + } } else { myThread->startThread(tr("MSG_GRAPH_STARTED")); - //syncNotification(); - //myIsRunned = true; sync(); } } @@ -486,7 +489,6 @@ void SUPERVGUI_Main::startExecute() { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_DF_BADEXECUTE")); } else { myThread->startThread(tr("MSG_GRAPH_STARTED")); - //syncNotification(); } } else { @@ -494,7 +496,6 @@ void SUPERVGUI_Main::startExecute() { QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_DF_BADEXECUTE")); } else { myThread->startThread(tr("MSG_GRAPH_STARTED")); - //syncNotification(); } } } @@ -1304,9 +1305,10 @@ void SUPERVGUI_Thread::run() // It is PROHIBITED to deal with widgets in a secondary thread, so event posting is used here ProcessVoidEvent( new TNodeSyncEvent( myMain, &SUPERVGUI_Main::execute, aNodeName, aNodeState ) ); - + myMain->removeFirstEN(); myMain->removeFirstS(); + } aPrevNode = aNode; -- 2.39.2