From ff842c0ebc02c517eab3d5b990a31a3d3877d7fd Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 15 Feb 2016 16:32:31 +0300 Subject: [PATCH] Fix for problem of rest presentations after opening document (and closing the previous) --- src/Model/Model_Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index 24a16b9ad..704a6afdc 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -81,7 +81,7 @@ void Model_Application::deleteAllDocuments() { std::map >::iterator aDoc = myDocs.begin(); for(; aDoc != myDocs.end(); aDoc++) { - if (!aDoc->second->isOpened()) // here is main document was closed before subs and closed subs + if (aDoc->second->isOpened()) // here is main document was closed before subs and closed subs aDoc->second->close(true); } myDocs.clear(); -- 2.39.2