]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for sigmentation at the exit from ACHERON.
authorsmh <smh@opencascade.com>
Tue, 20 Dec 2011 14:26:10 +0000 (14:26 +0000)
committersmh <smh@opencascade.com>
Tue, 20 Dec 2011 14:26:10 +0000 (14:26 +0000)
Delayed delete.

src/SUIT/SUIT_Application.cxx

index ead59e4c4205280b7d1aacc51b1b6ac3be421fab..9f6cf36bd57be3be43f95cb9733ff0c03c4d0422 100755 (executable)
@@ -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() ) );