]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
NRI : correction wrong mechanism to find GUI library.
authornri <nri@opencascade.com>
Fri, 18 Jul 2003 12:43:47 +0000 (12:43 +0000)
committernri <nri@opencascade.com>
Fri, 18 Jul 2003 12:43:47 +0000 (12:43 +0000)
src/SALOMEGUI/SALOMEGUI_Application.cxx

index 39897922b073a6b56aff54145049d0d6c4be832b..6720195b43166fda30477afbf56dbb15ea5d88fb 100644 (file)
@@ -500,9 +500,9 @@ void SALOMEGUI_Application::onDisplay(int id)
        MESSAGE ( " Not found " )
       }
     }
-    if ( !found && getenv( parentComp + "_ROOT_DIR")  ) {
+    if ( !found && getenv( QAD_Application::getDesktop()->getComponentName(parentComp) + "_ROOT_DIR")  ) {
       dir.fill('\0');
-      dir.sprintf("%s", getenv(parentComp + "_ROOT_DIR"));
+      dir.sprintf("%s", getenv( QAD_Application::getDesktop()->getComponentName(parentComp) + "_ROOT_DIR"));
       dir = QAD_Tools::addSlash(dir) ;
       dir = dir + "lib" ;
       dir = QAD_Tools::addSlash(dir) ;