X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c77049a04b5918a6b432aab94eaf31bc73c28916..1372f8ccd05daece34d4f44a07f95f45aee967de:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index b493ec91bd..5d53187c73 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -246,8 +246,6 @@ bool wxDocument::OnNewDocument() if ( !OnSaveModified() ) return false; - if ( !OnCloseDocument() ) - return false; DeleteContents(); Modify(false); SetDocumentSaved(false);