From ea689131b5a8e0c55cee4bbadc40b9ab145c8bde Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 21 Jun 2005 06:24:27 +0000 Subject: [PATCH] Fixing a bug : Salome GUI style needs addLibraryPath() method to be called --- src/Session/SALOME_Session_Server.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 42ef5ec28..1d3af0a51 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -176,12 +176,12 @@ int main(int argc, char **argv) // qApp used for detection of the executable dir path. SALOME_QApplication _qappl( argc, argv ); ASSERT( QObject::connect(&_qappl, SIGNAL( lastWindowClosed() ), &_qappl, SLOT( quit() ) ) ); + QString path( ::getenv( "GUI_ROOT_DIR" ) ); + if ( !path.isEmpty() ) + path += QDir::separator(); + path += QString( "bin/salome" ); + _qappl.addLibraryPath( path ); _qappl.setStyle( "salome" ); - /* - QStringList lst = _qappl.libraryPaths(); - for ( QStringList::const_iterator it = lst.begin(); it != lst.end(); ++it ) - printf( "=====> Library path: %s\n", (*it).latin1() ); - */ /* Python initialisation : only once -- 2.39.2