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 );