From 82806e866a250df916702d82f7c8e74d1675a211 Mon Sep 17 00:00:00 2001 From: ptv Date: Tue, 22 Nov 2005 10:21:26 +0000 Subject: [PATCH] remove all listview items from memory if root object become dead --- src/ObjBrowser/OB_Browser.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.2