X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEGUI%2FSALOMEGUI_Application.cxx;h=d9b5ad9b10ce07afd26b67be17690ba12ef94cb8;hb=b9114b43aa01d06f55dcf3f0a62df984e0cfc556;hp=61556f22f578beb59beff104b873609f8ee642f9;hpb=bb45d9b1d38134dde4b343d12b26c78dffa10c9d;p=modules%2Fkernel.git diff --git a/src/SALOMEGUI/SALOMEGUI_Application.cxx b/src/SALOMEGUI/SALOMEGUI_Application.cxx index 61556f22f..d9b5ad9b1 100644 --- a/src/SALOMEGUI/SALOMEGUI_Application.cxx +++ b/src/SALOMEGUI/SALOMEGUI_Application.cxx @@ -458,49 +458,7 @@ void SALOMEGUI_Application::onDisplay(int id) QCString dir; QFileInfo fileInfo ; bool found = false; - if ( getenv("SALOME_SITE_DIR") ) { - dir.fill('\0'); - dir.sprintf("%s",getenv("SALOME_SITE_DIR")); - dir = QAD_Tools::addSlash(dir) ; - dir = dir + "lib" ; - dir = QAD_Tools::addSlash(dir) ; -#ifdef WNT - dir = dir + "lib" + parentComp.latin1() + "GUI.dll" ; -#else - dir = dir + "lib" + parentComp.latin1() + "GUI.so" ; -#endif - MESSAGE ( " GUI library = " << dir ) - fileInfo.setFile(dir) ; - if (fileInfo.exists()) { - ComponentLib = fileInfo.fileName(); - found = true; - MESSAGE ( " found " ) - } else { - MESSAGE ( " Not found " ) - } - } - if ( !found && getenv("SALOME_ROOT_DIR") ) { - dir.fill('\0'); - dir.sprintf("%s", getenv("SALOME_ROOT_DIR")); - dir = QAD_Tools::addSlash(dir) ; - dir = dir + "lib" ; - dir = QAD_Tools::addSlash(dir) ; -#ifdef WNT - dir = dir + "lib" + parentComp.latin1() + "GUI.dll" ; -#else - dir = dir + "lib" + parentComp.latin1() + "GUI.so" ; -#endif - MESSAGE ( " GUI library = " << dir ) - fileInfo.setFile(dir) ; - if (fileInfo.exists()) { - ComponentLib = fileInfo.fileName() ; - found = true; - MESSAGE ( " found " ) - } else { - MESSAGE ( " Not found " ) - } - } - if ( !found && getenv( QAD_Application::getDesktop()->getComponentName(parentComp) + "_ROOT_DIR") ) { + if ( getenv( QAD_Application::getDesktop()->getComponentName(parentComp) + "_ROOT_DIR") ) { dir.fill('\0'); dir.sprintf("%s", getenv( QAD_Application::getDesktop()->getComponentName(parentComp) + "_ROOT_DIR")); dir = QAD_Tools::addSlash(dir) ;