]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/LightApp/LightApp_OBSelector.cxx
Salome HOME
fix module list updating in SalomeApprc
[modules/gui.git] / src / LightApp / LightApp_OBSelector.cxx
index 73c72bd3e8f4c8d563dc2a82b7d3c8cde3f76514..80966fe64efa7cd4c75d1193e00e2fefb8070f10 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -101,11 +101,15 @@ void LightApp_OBSelector::setModified()
 */
 void LightApp_OBSelector::onSelectionChanged()
 {
+#ifdef _DEBUG_
   QTime t1 = QTime::currentTime();
+#endif
   mySelectedList.clear();
   selectionChanged();
+#ifdef _DEBUG_
   QTime t2 = QTime::currentTime();
   qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData() );
+#endif
 }
 
 /*!
@@ -130,9 +134,9 @@ void LightApp_OBSelector::getSelection( SUIT_DataOwnerPtrList& theList ) const
       if ( obj && app->checkDataObject( obj) ) {
 #ifndef DISABLE_SALOMEOBJECT
         Handle(SALOME_InteractiveObject) aSObj = new SALOME_InteractiveObject
-          ( obj->entry().toLatin1().constData(),
+          ( obj->entry().toUtf8().constData(),
             obj->componentDataType().toLatin1().constData(),
-            obj->name().toLatin1().constData() );
+            obj->name().toUtf8().constData() );
         LightApp_DataOwner* owner = new LightApp_DataOwner( aSObj  );
 #else
         LightApp_DataOwner* owner = new LightApp_DataOwner( obj->entry() );