From: ptv Date: Tue, 22 Nov 2005 10:21:26 +0000 (+0000) Subject: remove all listview items from memory if root object become dead X-Git-Tag: BR_3_1_0_deb~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=82806e866a250df916702d82f7c8e74d1675a211;p=modules%2Fgui.git remove all listview items from memory if root object become dead --- diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index cb7d2e26b..4b613ce11 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -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;