From 1919fedb6452083339a0ee6c48f83678174c6ac9 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 19 Apr 2007 11:49:18 +0000 Subject: [PATCH] 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. --- src/LightApp/LightApp_Selection.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2