From: vsr Date: Tue, 21 Jun 2005 06:24:27 +0000 (+0000) Subject: Fixing a bug : Salome GUI style needs addLibraryPath() method to be called X-Git-Tag: T3_0_0_a4~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ea689131b5a8e0c55cee4bbadc40b9ab145c8bde;p=modules%2Fgui.git Fixing a bug : Salome GUI style needs addLibraryPath() method to be called --- 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