]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Int. 21157: Workaround Qt 4.5.0 bug with raising of SIGSEGV on desktop deleting V5_1_2rc2
authorvsr <vsr@opencascade.com>
Tue, 9 Jun 2009 10:54:22 +0000 (10:54 +0000)
committervsr <vsr@opencascade.com>
Tue, 9 Jun 2009 10:54:22 +0000 (10:54 +0000)
src/SUIT/SUIT_Application.cxx

index 042b6fc8c11492c3b2bd5bae5c13c2271535d035..204ae53c8f34411ec239c73433920682d1d3005b 100755 (executable)
@@ -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() ) );