From: stv Date: Tue, 7 Jun 2005 08:31:28 +0000 (+0000) Subject: IPAL9086: STD_Application::onCloseDoc() : used clearViewManagers() instead reverse... X-Git-Tag: T3_0_0_a2~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87cc2c96462d79b085584233fab1bb989d68970d;p=modules%2Fgui.git IPAL9086: STD_Application::onCloseDoc() : used clearViewManagers() instead reverse cycle of view managers list with SUIT_ViewManager::closeAllViews() --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index bb93a11cf..4023ea334 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -278,18 +278,11 @@ void STD_Application::onCloseDoc() beforeCloseDoc( study ); - QPtrListIterator 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;