From: jfa Date: Thu, 19 Apr 2007 11:49:18 +0000 (+0000) Subject: NPAL15658: GUI bug with popup: if we have some selected objects in SMESH and switch... X-Git-Tag: T_EDF_15278 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1919fedb6452083339a0ee6c48f83678174c6ac9;p=modules%2Fgui.git NPAL15658: GUI bug with popup: if we have some selected objects in SMESH and switch to GEOM, then popup of any object will be wrong. --- diff --git a/src/LightApp/LightApp_Selection.cxx b/src/LightApp/LightApp_Selection.cxx index fe0a15207..4b7e58ae5 100644 --- a/src/LightApp/LightApp_Selection.cxx +++ b/src/LightApp/LightApp_Selection.cxx @@ -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