From: vsr Date: Tue, 9 Jun 2009 10:54:22 +0000 (+0000) Subject: Int. 21157: Workaround Qt 4.5.0 bug with raising of SIGSEGV on desktop deleting X-Git-Tag: V5_1_2rc2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=99c6ade148ee3f5a0758beb9a7d02a55f28a0718;p=modules%2Fgui.git Int. 21157: Workaround Qt 4.5.0 bug with raising of SIGSEGV on desktop deleting --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index 042b6fc8c..204ae53c8 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -257,7 +257,9 @@ void SUIT_Application::setDesktop( SUIT_Desktop* desk ) if ( myDesktop == desk ) return; - delete myDesktop; + // >> VSR 09/06/2009: workaround about the Qt 4.5.0 bug: SIGSEGV on desktop delete + myDesktop->deleteLater(); // delete myDesktop; + // << VSR 09/06/2009 myDesktop = desk; if ( myDesktop ) { connect( myDesktop, SIGNAL( activated() ), this, SLOT( onDesktopActivated() ) );