From: mpv Date: Fri, 17 Apr 2015 06:51:27 +0000 (+0300) Subject: Fix for the issue #476: really close all documents on close X-Git-Tag: V_1.1.0~13^2~5^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=89575f2c6ddaa1b201166c046b0b1c03c16e4eb0;p=modules%2Fshaper.git Fix for the issue #476: really close all documents on close --- diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index a825e7471..212fd4c9c 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -61,6 +61,10 @@ void Model_Application::deleteDocument(string theDocID) void Model_Application::deleteAllDocuments() { + std::map >::iterator aDoc = myDocs.begin(); + for(; aDoc != myDocs.end(); aDoc++) { + aDoc->second->close(); + } myDocs.clear(); myLoadedByDemand.clear(); }