]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for IPAL12991 : Graph Supervisor doesn't appear after loading of the module via... V3_2_1
authormkr <mkr@opencascade.com>
Wed, 19 Jul 2006 05:47:39 +0000 (05:47 +0000)
committermkr <mkr@opencascade.com>
Wed, 19 Jul 2006 05:47:39 +0000 (05:47 +0000)
src/SUPERVGUI/SUPERVGUI.cxx

index feb934f71f4218f105f270e5016ea833a46cfbb8..b432b2c4a8bd85f0227c5a735d868e5fc68f9dbd 100644 (file)
@@ -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<SUPERVGUI_Main*>(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<SUPERVGUI_Main*>(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() );