From: nri Date: Fri, 18 Jul 2003 12:43:47 +0000 (+0000) Subject: NRI : correction wrong mechanism to find GUI library. X-Git-Tag: V1_4_0~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71dc7a822af19da414a0d9ece97a03f7e1c60967;p=modules%2Fkernel.git NRI : correction wrong mechanism to find GUI library. --- diff --git a/src/SALOMEGUI/SALOMEGUI_Application.cxx b/src/SALOMEGUI/SALOMEGUI_Application.cxx index 39897922b..6720195b4 100644 --- a/src/SALOMEGUI/SALOMEGUI_Application.cxx +++ b/src/SALOMEGUI/SALOMEGUI_Application.cxx @@ -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) ;