From f19b6b75e8aab99d192e70cc9ca04ae24dcaab75 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 28 Oct 2010 14:05:40 +0000 Subject: [PATCH] *** empty log message *** --- src/SUIT/SUIT_SelectionMgr.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SUIT/SUIT_SelectionMgr.cxx b/src/SUIT/SUIT_SelectionMgr.cxx index a3a48d597..531d3f15e 100755 --- a/src/SUIT/SUIT_SelectionMgr.cxx +++ b/src/SUIT/SUIT_SelectionMgr.cxx @@ -93,15 +93,16 @@ void SUIT_SelectionMgr::setEnabled( const bool on, const QString& typ ) void SUIT_SelectionMgr::selected( SUIT_DataOwnerPtrList& lst, const QString& type ) const { lst.clear(); - if (type.isEmpty()) - return; + bool aHasType = !type.isEmpty(); for ( SelectorList::const_iterator it = mySelectors.begin(); it != mySelectors.end(); ++it ) { if (!(*it)->isEnabled()) continue; - if ( (*it)->type() != type) - continue; + if (aHasType) { + if ( (*it)->type() != type) + continue; + } SUIT_DataOwnerPtrList curList; (*it)->selected( curList ); -- 2.39.2