From: mkr Date: Wed, 13 Jul 2005 09:50:35 +0000 (+0000) Subject: Add method for nullify myInitalViewFrame variable in SUPERVGUI class X-Git-Tag: current25072005~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddb3b13cd63d457776a9b9e443b877c293cd684b;p=modules%2Fsuperv.git Add method for nullify myInitalViewFrame variable in SUPERVGUI class to avoid using this view frame once more, it is using after add any node into first new dataflow in study. --- diff --git a/src/SUPERVGUI/SUPERVGUI.h b/src/SUPERVGUI/SUPERVGUI.h index 12d6986..d5239a9 100644 --- a/src/SUPERVGUI/SUPERVGUI.h +++ b/src/SUPERVGUI/SUPERVGUI.h @@ -110,6 +110,13 @@ class SUPERVGUI: public SalomeApp_Module { QMap getInterfaceNameMap() const; + /*! + * \brief The method nullify myInitalViewFrame variable + * to avoid using this view frame once more, it is using + * after add any node into first new dataflow in study. + */ + void nullifyInitialVF() { if ( myInitialViewFrame ) myInitialViewFrame = 0; } + signals: void KillMainThread(bool theValue); diff --git a/src/SUPERVGUI/SUPERVGUI_Service.cxx b/src/SUPERVGUI/SUPERVGUI_Service.cxx index f04f0ce..0c9f542 100644 --- a/src/SUPERVGUI/SUPERVGUI_Service.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Service.cxx @@ -1024,6 +1024,7 @@ void SUPERVGUI_Service::addNode( SUPERV::CNode_var theNode, SUPERV::INode_var th aMain->addControlNode( theNode, SUPERV::CNode::_narrow( theEndNode ), true ); else aMain->addComputeNode( theNode ); + aSupMod->nullifyInitialVF(); } }