From: mkr Date: Wed, 19 Jul 2006 05:47:39 +0000 (+0000) Subject: Fix for IPAL12991 : Graph Supervisor doesn't appear after loading of the module via... X-Git-Tag: V3_2_1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=340461354dbac89b3108a7a34f33147f5a06d1ab;p=modules%2Fsuperv.git Fix for IPAL12991 : Graph Supervisor doesn't appear after loading of the module via "Activate Module". --- diff --git a/src/SUPERVGUI/SUPERVGUI.cxx b/src/SUPERVGUI/SUPERVGUI.cxx index feb934f..b432b2c 100644 --- a/src/SUPERVGUI/SUPERVGUI.cxx +++ b/src/SUPERVGUI/SUPERVGUI.cxx @@ -499,6 +499,11 @@ void SUPERVGUI::displayDataflow() { else { // second case : get empty initial view frame as new ViewFrame object aViewFrame = myInitialViewFrame; + // mkr : IPAL12991 --> + SUPERVGraph_View* view = myInitialViewFrame->getViewWidget(); + if (view) + unregisterGraph(dynamic_cast(view)); + // mkr : IPAL12991 <-- // mkr : PAL8237 : remove first "gag" Main from children // srn: commented as it cases on application exit "X Windows error" //aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() ); @@ -707,6 +712,13 @@ bool SUPERVGUI::createDataflow( const NEW_DF_MODE mode, bool theInitialDF ) { else { // 2. get empty initial view frame as new ViewFrame object aViewFrame = myInitialViewFrame; + // mkr : IPAL12991 --> + if ( myInitialViewFrame ) { + SUPERVGraph_View* view = myInitialViewFrame->getViewWidget(); + if (view) + unregisterGraph(dynamic_cast(view)); + } + // mkr : IPAL12991 <-- // mkr : PAL8237 : remove first "gag" Main from children // srn: commented as it cases on application exit "X Windows error" //aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );