X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94dc70d190601bd3ef872009ca16c808bc4af72f..cffda6922a7a7f205389e8002d0b7558ec2d36fb:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 8350a4117f..635a2529bb 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1625,7 +1625,8 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates, GetLastDirectory(), wxEmptyString, &FilterIndex, - descrBuf); + descrBuf, + wxFD_OPEN | wxFD_FILE_MUST_EXIST); wxDocTemplate *theTemplate = NULL; if (!pathTmp.empty())