From ad85d7aa931eb7a9af0632751b14ae945f3e5da0 Mon Sep 17 00:00:00 2001 From: ema Date: Wed, 23 Nov 2011 12:12:33 +0000 Subject: [PATCH] 1.Porting to QWT 6.0rc5 2.Porting to QT 4.7.1 3.Fix SIGSEGV on exit from application --- src/SUIT/SUIT_Application.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ) ); -- 2.39.2