From: nds Date: Thu, 3 Nov 2005 08:16:57 +0000 (+0000) Subject: Load icon "about.png" from LightApp not SalomeApp X-Git-Tag: V3_1_0a3~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d24e9ed164a6b837f9b89cf17402f5a219a990e7;p=modules%2Fgui.git Load icon "about.png" from LightApp not SalomeApp --- diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 990cf2957..84c7f7a81 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -358,12 +358,13 @@ int main( int argc, char **argv ) if ( isFound( "SPLASH", argc, argv ) ) { // create temporary resource manager just to load splash icon - SALOME_ResourceMgr resMgr( "SalomeApp", QString( "%1Config" ) ); - resMgr.loadLanguage( "SalomeApp", "en" ); + SUIT_ResourceMgr resMgr( "SalomeApp", QString( "%1Config" ) ); + resMgr.setCurrentFormat( "xml" ); + resMgr.loadLanguage( "LightApp", "en" ); // create splash object: widget ( splash with progress bar ) and "pinging" thread InquireServersGUI splash; - splash.setPixmap( resMgr.loadPixmap( "SalomeApp", QObject::tr( "ABOUT_SPLASH" ) ) ); + splash.setPixmap( resMgr.loadPixmap( "LightApp", QObject::tr( "ABOUT_SPLASH" ) ) ); SUIT_Tools::centerWidget( &splash, _qappl.desktop() ); _qappl.setMainWidget( &splash );