From: sln Date: Tue, 23 Nov 2010 11:44:30 +0000 (+0000) Subject: 0000109: crash on exit from application. X-Git-Tag: DIAGRAM_0_1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c631c748cc95b19acbce0559576bb5884d29bc7;p=modules%2Fgui.git 0000109: crash on exit from application. myDesktop->deleteLater(); in SUIT_Application::setDesktop() instead of delete myDesktop; to avoid meny destruction till the finish its processing --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index ead59e4c4..50aee03ac 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -254,7 +254,8 @@ void SUIT_Application::setDesktop( SUIT_Desktop* desk ) if ( myDesktop == desk ) return; - delete myDesktop; + //delete myDesktop; + myDesktop->deleteLater(); myDesktop = desk; if ( myDesktop ) { connect( myDesktop, SIGNAL( activated() ), this, SLOT( onDesktopActivated() ) );