]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug IPAL19532 - Qt4 porting. Error on Close study with Mesh activated, if other study...
authorouv <ouv@opencascade.com>
Tue, 29 Apr 2008 11:39:21 +0000 (11:39 +0000)
committerouv <ouv@opencascade.com>
Tue, 29 Apr 2008 11:39:21 +0000 (11:39 +0000)
src/STD/STD_Application.cxx

index 211966bcd6a566c670af27d0130d891b1a99b958..8af1e624691eeae57c0e0dbdfbdad14d8affd106 100755 (executable)
@@ -349,7 +349,6 @@ void STD_Application::onCloseDoc( bool ask )
   clearViewManagers();
 
   setActiveStudy( 0 );
-  delete study;
 
   int aNbStudies = 0;
   QList<SUIT_Application*> apps = SUIT_Session::session()->applications();
@@ -367,6 +366,9 @@ void STD_Application::onCloseDoc( bool ask )
     updateCommandsStatus();
   }
 
+  // IPAL19532: deleting study should be performed after calling setDesktop(0)
+  delete study;
+
   afterCloseDoc();
 
   if ( !desktop() )