From: sln Date: Tue, 18 Jan 2011 15:03:39 +0000 (+0000) Subject: Debug message removed X-Git-Tag: DIAGRAM_0_1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=087fd2c78871188c23dd3c57fa891008ac399247;p=modules%2Fgui.git Debug message removed --- 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 );