From 99c6ade148ee3f5a0758beb9a7d02a55f28a0718 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 9 Jun 2009 10:54:22 +0000 Subject: [PATCH] Int. 21157: Workaround Qt 4.5.0 bug with raising of SIGSEGV on desktop deleting --- src/SUIT/SUIT_Application.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ) ); -- 2.39.2