]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
NPAL15658: GUI bug with popup: if we have some selected objects in SMESH and switch... T_EDF_15278 T_PAL_15278 V3_2_6 V3_2_6pre5
authorjfa <jfa@opencascade.com>
Thu, 19 Apr 2007 11:49:18 +0000 (11:49 +0000)
committerjfa <jfa@opencascade.com>
Thu, 19 Apr 2007 11:49:18 +0000 (11:49 +0000)
src/LightApp/LightApp_Selection.cxx

index fe0a15207ca64bd90a601988deb7125cde04e4fd..4b7e58ae5b76ff40fe25c1edce183fdf147137ea 100644 (file)
@@ -67,9 +67,10 @@ void LightApp_Selection::init( const QString& client, LightApp_SelectionMgr* mgr
     for( SUIT_Selector* selector = aSelectors.first(); selector; selector = aSelectors.next() )
     {
       qDebug( selector->type() );
-      if( selector->type()!=client )
+      if( selector->type() != client && selector->isEnabled() )
       {
-       mgr->selected( cur_sel, selector->type() );
+       //mgr->selected( cur_sel, selector->type() );
+        selector->selected( cur_sel );
        SUIT_DataOwnerPtrList::const_iterator aLIt = cur_sel.begin(), aLLast = cur_sel.end();
        for( ; aLIt!=aLLast; aLIt++ )
          sel.append( *aLIt ); //check entry and don't append if such entry is in list already