From d24e9ed164a6b837f9b89cf17402f5a219a990e7 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 3 Nov 2005 08:16:57 +0000 Subject: [PATCH] Load icon "about.png" from LightApp not SalomeApp --- src/Session/SALOME_Session_Server.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ); -- 2.39.2