From 039939bef28c916f596c491f41edae8c0e51ef81 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 17 Sep 2010 13:07:35 +0000 Subject: [PATCH] *** empty log message *** --- src/SUIT/SUIT_SelectionMgr.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SUIT/SUIT_SelectionMgr.cxx b/src/SUIT/SUIT_SelectionMgr.cxx index 042631603..a3a48d597 100755 --- a/src/SUIT/SUIT_SelectionMgr.cxx +++ b/src/SUIT/SUIT_SelectionMgr.cxx @@ -93,10 +93,14 @@ 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; for ( SelectorList::const_iterator it = mySelectors.begin(); it != mySelectors.end(); ++it ) { - if ( !type.isEmpty() && (*it)->type() != type ) + if (!(*it)->isEnabled()) + continue; + if ( (*it)->type() != type) continue; SUIT_DataOwnerPtrList curList; -- 2.39.2