From: smh Date: Tue, 20 Dec 2011 14:26:10 +0000 (+0000) Subject: Fix for sigmentation at the exit from ACHERON. X-Git-Tag: V5_1_20~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=849c81162c4ffd767f96232a6c91190700a0a6fd;p=modules%2Fgui.git Fix for sigmentation at the exit from ACHERON. Delayed delete. --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index ead59e4c4..9f6cf36bd 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -253,8 +253,8 @@ void SUIT_Application::setDesktop( SUIT_Desktop* desk ) { if ( myDesktop == desk ) return; - - delete myDesktop; + //workaround about Qt 4.7.1 bug: SIGSEGV on desktop delete + myDesktop->deleteLater(); //delete myDesktop; myDesktop = desk; if ( myDesktop ) { connect( myDesktop, SIGNAL( activated() ), this, SLOT( onDesktopActivated() ) );