+ ignore the 'Closable' flag in closeDocument()

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5413 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2012-01-17 12:09:10 +00:00
parent a325e2422b
commit ce9a0bc54e

View File

@ -308,9 +308,6 @@ bool Application::closeDocument(const char* name)
if (pos == DocMap.end()) // no such document if (pos == DocMap.end()) // no such document
return false; return false;
if (!pos->second->isClosable())
return false;
// Trigger observers before removing the document from the internal map. // Trigger observers before removing the document from the internal map.
// Some observers might rely on that this document is still there. // Some observers might rely on that this document is still there.
signalDeleteDocument(*pos->second); signalDeleteDocument(*pos->second);