Salome HOME
New item (FontItem), allowing to show information about font setting and to select...
[modules/gui.git] / src / SUIT / SUIT_SelectionMgr.cxx
index b19694e89544459efd36da024110e19bb5d70bdb..6711e5797a8893f52d01f80adf86a9faba554e3e 100755 (executable)
@@ -1,13 +1,16 @@
 #include "SUIT_SelectionMgr.h"
 
+/*!constructor. initialize myIterations and myIsSelChangeEnabled.*/
 SUIT_SelectionMgr::SUIT_SelectionMgr( const bool Feedback )
 : myIterations( Feedback ? 1 : 0 ),
 myIsSelChangeEnabled( true )
 {
 }
 
+/*!destructor. mySelectors auto delete.*/
 SUIT_SelectionMgr::~SUIT_SelectionMgr()
 {
+  mySelectors.setAutoDelete( true );
 }
 
 void SUIT_SelectionMgr::installSelector( SUIT_Selector* sel )
@@ -108,8 +111,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;