]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0000109: crash on exit from application.
authorsln <sln@opencascade.com>
Tue, 23 Nov 2010 11:44:30 +0000 (11:44 +0000)
committersln <sln@opencascade.com>
Tue, 23 Nov 2010 11:44:30 +0000 (11:44 +0000)
myDesktop->deleteLater(); in SUIT_Application::setDesktop() instead of delete myDesktop; to avoid meny destruction till the finish its processing

src/SUIT/SUIT_Application.cxx

index ead59e4c4205280b7d1aacc51b1b6ac3be421fab..50aee03acc2e864b8eab34c2c2d661d0a837d1e6 100755 (executable)
@@ -254,7 +254,8 @@ void SUIT_Application::setDesktop( SUIT_Desktop* desk )
   if ( myDesktop == desk )
     return;
 
-  delete myDesktop;
+  //delete myDesktop;
+  myDesktop->deleteLater();
   myDesktop = desk;
   if ( myDesktop ) {
     connect( myDesktop, SIGNAL( activated() ), this, SLOT( onDesktopActivated() ) );