X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f170f33fd19bdef10884f506fcc924d858ccb50..cd79f7b0d9f3fdd716e25a46e370e613e3d4c296:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index 1ae9b6ee9c..84bbc05b86 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -335,7 +335,10 @@ public: // called when file format detection didn't work, can be overridden to do // something in this case - virtual void OnOpenFileFailure() { wxFAIL_MSG(_T("file format mismatch")); } + // This is of course completely stupid, because if the file dialog is + // cancelled you get an assert. Brilliant. -- JACS +// virtual void OnOpenFileFailure() { wxFAIL_MSG(_T("file format mismatch")); } + virtual void OnOpenFileFailure() { } virtual wxDocument *CreateDocument(const wxString& path, long flags = 0); virtual wxView *CreateView(wxDocument *doc, long flags = 0);