]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
IPAL9086: STD_Application::onCloseDoc() : used clearViewManagers() instead reverse...
authorstv <stv@opencascade.com>
Tue, 7 Jun 2005 08:31:28 +0000 (08:31 +0000)
committerstv <stv@opencascade.com>
Tue, 7 Jun 2005 08:31:28 +0000 (08:31 +0000)
src/STD/STD_Application.cxx

index bb93a11cf6ce95cb9708c0be4cc0753a36cfe92f..4023ea33413f7e8156bba425c186bc8877227d31 100755 (executable)
@@ -278,18 +278,11 @@ void STD_Application::onCloseDoc()
 
   beforeCloseDoc( study );
 
-  QPtrListIterator<SUIT_ViewManager> it( myViewMgrs );
-  it.toLast();
-  SUIT_ViewManager* vm = 0;
-  while( ( vm = it.current()) != 0 )
-  {
-    vm->closeAllViews();
-    --it;
-  }
-
   if ( study )
     study->closeDocument();
 
+  clearViewManagers();
+
   setActiveStudy( 0 );
   delete study;