From 71dc7a822af19da414a0d9ece97a03f7e1c60967 Mon Sep 17 00:00:00 2001 From: nri Date: Fri, 18 Jul 2003 12:43:47 +0000 Subject: [PATCH] NRI : correction wrong mechanism to find GUI library. --- src/SALOMEGUI/SALOMEGUI_Application.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ; -- 2.39.2