From: stv Date: Tue, 22 Nov 2005 13:50:10 +0000 (+0000) Subject: no message X-Git-Tag: BR_3_1_0_deb~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=125e6a152e093039a4858933e545a81f34f8010a;p=modules%2Fgui.git no message --- diff --git a/src/SUITApp/SUITApp.cxx b/src/SUITApp/SUITApp.cxx index 5f3750aed..c63c2ae09 100644 --- a/src/SUITApp/SUITApp.cxx +++ b/src/SUITApp/SUITApp.cxx @@ -7,8 +7,9 @@ #include "SUITApp_Application.h" -#include "SUIT_Session.h" -#include "SUIT_ResourceMgr.h" +#include +#include +#include #ifdef SUIT_ENABLE_PYTHON @@ -137,11 +138,15 @@ int main( int args, char* argv[] ) if ( !argList.isEmpty() ) { SUITApp_Session* aSession = new SUITApp_Session( iniFormat ); - if ( aSession->startApplication( argList.first() ) ) + SUIT_Application* theApp = aSession->startApplication( argList.first() ); + if ( theApp ) { if ( !noExceptHandling ) app.setHandler( aSession->handler() ); + if ( !app.mainWidget() ) + app.setMainWidget( theApp->desktop() ); + result = app.exec(); } delete aSession;