From df86f92a54fef4ead714d8d555f419c46083e003 Mon Sep 17 00:00:00 2001 From: ptv Date: Fri, 14 Jul 2006 07:00:41 +0000 Subject: [PATCH] fix from project COSAC_GUI --- src/ObjBrowser/OB_Browser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index 272a4b661..b6f64d57b 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -1103,7 +1103,7 @@ void OB_Browser::autoOpenBranches() void OB_Browser::openBranch( QListViewItem* item, const int level ) { - if ( level < 1 ) + if ( !item || level < 1 || !item->childCount() ) return; while ( item ) -- 2.39.2