]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
remove all listview items from memory if root object become dead
authorptv <ptv@opencascade.com>
Tue, 22 Nov 2005 10:21:26 +0000 (10:21 +0000)
committerptv <ptv@opencascade.com>
Tue, 22 Nov 2005 10:21:26 +0000 (10:21 +0000)
src/ObjBrowser/OB_Browser.cxx

index cb7d2e26b2f59fab4838a9eec1a967ba5e0823be..4b613ce11f269506a3961b65fcbc714530cb9751 100755 (executable)
@@ -1050,7 +1050,11 @@ void OB_Browser::removeObject( SUIT_DataObject* obj, const bool autoUpd )
   myItems.remove( obj );
 
   if ( obj == myRoot )
-    myRoot = 0;
+  {
+    // remove all child list view items
+    setRootObject( 0 );
+    return;
+  }
 
   if ( !autoUpd )
     return;