]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Load icon "about.png" from LightApp not SalomeApp
authornds <nds@opencascade.com>
Thu, 3 Nov 2005 08:16:57 +0000 (08:16 +0000)
committernds <nds@opencascade.com>
Thu, 3 Nov 2005 08:16:57 +0000 (08:16 +0000)
src/Session/SALOME_Session_Server.cxx

index 990cf2957b24ae3b010f859de6a2a8b88c23c1cb..84c7f7a816a769ad18ab28304c90dc00cb79b9d2 100755 (executable)
@@ -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 );