From: vsr Date: Wed, 29 Dec 2004 05:17:48 +0000 (+0000) Subject: Fix bug PAL7019 - the "Expand All" popup menu functionality now works correctly both... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47d4586f73913d16230e9a2f542f56f6e5e33b56;p=modules%2Fkernel.git Fix bug PAL7019 - the "Expand All" popup menu functionality now works correctly both for Object Browser and UseCase Browser. --- diff --git a/src/SALOMEGUI/QAD_ObjectBrowser.cxx b/src/SALOMEGUI/QAD_ObjectBrowser.cxx index 91cc38a59..55b86abfc 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowser.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowser.cxx @@ -519,7 +519,7 @@ void QAD_ObjectBrowser::onCreatePopup() } bool canExpand = false; - for ( QListViewItemIterator it( getListView() ); it.current() && !canExpand; ++it ) + for ( QListViewItemIterator it( currentPage() == myListView ? myListView : myUseCaseView ); it.current() && !canExpand; ++it ) canExpand = canExpand || ( it.current()->isSelected() && hasCollapsed( it.current() ) ); if ( canExpand ) { @@ -582,7 +582,7 @@ void QAD_ObjectBrowser::onCreatePopup() */ void QAD_ObjectBrowser::onExpandAll() { - for ( QListViewItemIterator it( getListView() ); it.current(); ++it ) + for ( QListViewItemIterator it( currentPage() == myListView ? myListView : myUseCaseView ); it.current(); ++it ) if ( it.current()->isSelected() ) expand( it.current() ); }