]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message *** BR_OCCMULTIVIEW
authorvsv <vsv@opencascade.com>
Fri, 17 Sep 2010 13:07:35 +0000 (13:07 +0000)
committervsv <vsv@opencascade.com>
Fri, 17 Sep 2010 13:07:35 +0000 (13:07 +0000)
src/SUIT/SUIT_SelectionMgr.cxx

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