From: stv Date: Thu, 22 Dec 2005 10:20:43 +0000 (+0000) Subject: Not set the main window to the QApplication. If main window of application is closed... X-Git-Tag: T_Before_Join_BR_3_1_0deb~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1cbd59f8421a5b9b2e977451943b5d90a33ed37f;p=modules%2Fgui.git 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. --- 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(); }