From 1cbd59f8421a5b9b2e977451943b5d90a33ed37f Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 22 Dec 2005 10:20:43 +0000 Subject: [PATCH] Not set the main window to the QApplication. If main window of application is closed then main event loop finished and application exits. Now event loop finished when all toplevel windows closed. --- src/SUITApp/SUITApp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SUITApp/SUITApp.cxx b/src/SUITApp/SUITApp.cxx index 8145be257..497906700 100644 --- a/src/SUITApp/SUITApp.cxx +++ b/src/SUITApp/SUITApp.cxx @@ -162,8 +162,8 @@ int main( int args, char* argv[] ) if ( !noExceptHandling ) app.setHandler( aSession->handler() ); - if ( !app.mainWidget() ) - app.setMainWidget( theApp->desktop() ); +// if ( !app.mainWidget() ) +// app.setMainWidget( theApp->desktop() ); result = app.exec(); } -- 2.39.2