From 087fd2c78871188c23dd3c57fa891008ac399247 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 18 Jan 2011 15:03:39 +0000 Subject: [PATCH] Debug message removed --- src/LightApp/LightApp_OBSelector.cxx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/LightApp/LightApp_OBSelector.cxx b/src/LightApp/LightApp_OBSelector.cxx index ea3d3ffa0..85ca3e8e1 100644 --- a/src/LightApp/LightApp_OBSelector.cxx +++ b/src/LightApp/LightApp_OBSelector.cxx @@ -102,7 +102,7 @@ void LightApp_OBSelector::onSelectionChanged() mySelectedList.clear(); selectionChanged(); QTime t2 = QTime::currentTime(); - qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData() ); + // qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData() ); } /*! @@ -156,9 +156,17 @@ void LightApp_OBSelector::setSelection( const SUIT_DataOwnerPtrList& theList ) DataObjectList objList; for ( SUIT_DataOwnerPtrList::const_iterator it = theList.begin(); it != theList.end(); ++it ) { - const LightApp_DataOwner* owner = dynamic_cast( (*it).operator->() ); - if ( owner && myEntries.contains( owner->entry() ) ) - objList.append( myEntries[owner->entry()] ); + const LightApp_DataOwner* owner = + dynamic_cast( (*it).operator->() ); + if ( owner ) + { + QString entry = owner->entry(); + if ( myEntries.contains( entry ) ) + { + LightApp_DataObject* dataObj = myEntries[ entry ]; + objList.append( dataObj ); + } + } } myBrowser->setSelected( objList ); -- 2.39.2