X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_SelectionMgr.cxx;h=6711e5797a8893f52d01f80adf86a9faba554e3e;hb=3b3dce973acb7299499dd3527ded627940516ab3;hp=b19694e89544459efd36da024110e19bb5d70bdb;hpb=375d139854050ac38f30a8055daa9b0e1f8dfcef;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_SelectionMgr.cxx b/src/SUIT/SUIT_SelectionMgr.cxx index b19694e89..6711e5797 100755 --- a/src/SUIT/SUIT_SelectionMgr.cxx +++ b/src/SUIT/SUIT_SelectionMgr.cxx @@ -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;