From: vsv Date: Fri, 17 Sep 2010 13:07:35 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=039939bef28c916f596c491f41edae8c0e51ef81;p=modules%2Fgui.git *** empty log message *** --- 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;