Salome HOME
BugID IPAL11979, comment the code that causes the error
authorsrn <srn@opencascade.com>
Tue, 4 Apr 2006 07:51:46 +0000 (07:51 +0000)
committersrn <srn@opencascade.com>
Tue, 4 Apr 2006 07:51:46 +0000 (07:51 +0000)
src/SUPERVGUI/SUPERVGUI.cxx

index dce6074b55f62a538ddf1d45ea3ad188233909e2..b1cf1a54e098667ade0a36fe1fa7f43c4583b495 100644 (file)
@@ -488,7 +488,8 @@ void SUPERVGUI::displayDataflow() {
       // second case : get empty initial view frame as new ViewFrame object
       aViewFrame = myInitialViewFrame;
       // mkr : PAL8237 : remove first "gag" Main from children
-      aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );
+      // srn: commented as it cases on application exit "X Windows error"
+      //aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );
     }
 
     if( aViewFrame ) {
@@ -695,7 +696,8 @@ bool SUPERVGUI::createDataflow( const NEW_DF_MODE mode, bool theInitialDF ) {
     // 2. get empty initial view frame as new ViewFrame object
     aViewFrame = myInitialViewFrame;
     // mkr : PAL8237 : remove first "gag" Main from children
-    aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );
+    // srn: commented as it cases on application exit "X Windows error"
+    //aViewFrame->removeChild( aViewFrame->queryList("SUPERVGUI_Main")->first() );
   }
 
   if ( aViewFrame ) {