Salome HOME
studyActivated() virtual method has been added
[modules/gui.git] / src / SUIT / SUIT_SelectionMgr.cxx
index b19694e89544459efd36da024110e19bb5d70bdb..6384d2bd3e83dcdca77777d67b854d7282afca63 100755 (executable)
@@ -8,6 +8,7 @@ myIsSelChangeEnabled( true )
 
 SUIT_SelectionMgr::~SUIT_SelectionMgr()
 {
+  mySelectors.setAutoDelete( true );
 }
 
 void SUIT_SelectionMgr::installSelector( SUIT_Selector* sel )
@@ -108,8 +109,9 @@ void SUIT_SelectionMgr::selectionChanged( SUIT_Selector* sel )
   {
     for ( SUIT_Selector* aSel = mySelectors.first(); aSel; aSel = mySelectors.next() )
     {
-      if ( aSel != sel )
-           aSel->setSelected( newOwners );
+      // Temporary action(to avoid selection of the objects which don't pass the filters):
+      //if ( aSel != sel )
+       aSel->setSelected( newOwners );
     }
   }
   myIsSelChangeEnabled = true;