]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Debug message removed
authorsln <sln@opencascade.com>
Tue, 18 Jan 2011 15:03:39 +0000 (15:03 +0000)
committersln <sln@opencascade.com>
Tue, 18 Jan 2011 15:03:39 +0000 (15:03 +0000)
src/LightApp/LightApp_OBSelector.cxx

index ea3d3ffa0dfcfbe7217966b8a42c1df5c6360ea1..85ca3e8e1467b85fc96516465c7b22f448fe8f18 100644 (file)
@@ -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<const LightApp_DataOwner*>( (*it).operator->() );
-    if ( owner && myEntries.contains( owner->entry() ) )
-      objList.append( myEntries[owner->entry()] );
+    const LightApp_DataOwner* owner = 
+      dynamic_cast<const LightApp_DataOwner*>( (*it).operator->() );
+    if ( owner )
+    {
+      QString entry = owner->entry();
+      if ( myEntries.contains( entry ) )
+      {
+        LightApp_DataObject* dataObj = myEntries[ entry ];
+        objList.append( dataObj );
+      }
+    }
   }
 
   myBrowser->setSelected( objList );