]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorvsv <vsv@opencascade.com>
Thu, 28 Oct 2010 14:05:40 +0000 (14:05 +0000)
committervsv <vsv@opencascade.com>
Thu, 28 Oct 2010 14:05:40 +0000 (14:05 +0000)
src/SUIT/SUIT_SelectionMgr.cxx

index a3a48d597240acdee1ba55d081d14b328d7ad1d1..531d3f15e6e271d77e8cdd9a95f445e64fb54b31 100755 (executable)
@@ -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 );