]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/docview.h
Added From(), OrderBy() and Where() functions that correspons to the Set/GetWhereClau...
[wxWidgets.git] / include / wx / docview.h
index 1ae9b6ee9cc673b03fae9089c7a946bdcdc1f1d6..84bbc05b8643ede6c4484f1e26294fee024b00ac 100644 (file)
@@ -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);