From 125e6a152e093039a4858933e545a81f34f8010a Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 22 Nov 2005 13:50:10 +0000 Subject: [PATCH] no message --- src/SUITApp/SUITApp.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; -- 2.39.2