]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/LightApp/LightApp_Application.cxx
Salome HOME
Unicode support
[modules/gui.git] / src / LightApp / LightApp_Application.cxx
index ad5debdbcb2e8d8e2ae44ea20e38782ff1d015e8..ae03b893e602ddc15f590ac7437098e8a7163255 100644 (file)
@@ -659,7 +659,7 @@ void LightApp_Application::createActions()
     QString modName = moduleName( aModule );                         // module name
     if ( modName.isEmpty() ) modName = aModule;                      // for KERNEL and GUI
     QString rootDir = QString( "%1_ROOT_DIR" ).arg( modName );       // module root dir env variable
-    QString modDir  = getenv( rootDir.toLatin1().constData() );      // module root dir path
+    QString modDir  = getenv( rootDir.toUtf8().constData() );      // module root dir path
     QString docSection;
     if (resMgr->hasValue( modName, "documentation" ) )
       docSection = resMgr->stringValue(modName, "documentation");
@@ -4898,9 +4898,9 @@ QString LightApp_Application::browseObjects( const QStringList& theEntryList,
         SUIT_DataOwnerPtrList aList;
 #ifndef DISABLE_SALOMEOBJECT
         Handle(SALOME_InteractiveObject) aSObj = new SALOME_InteractiveObject
-          ( anObject->entry().toLatin1().constData(),
+          ( anObject->entry().toUtf8().constData(),
             anObject->componentDataType().toLatin1().constData(),
-            anObject->name().toLatin1().constData() );
+            anObject->name().toUtf8().constData() );
         LightApp_DataOwner* owner = new LightApp_DataOwner( aSObj  );
 #else
         LightApp_DataOwner* owner = new LightApp_DataOwner( anEntry );