]> git.saurik.com Git - wxWidgets.git/commitdiff
added code for respecting the creator & types when saving files
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 10 Jan 2003 16:24:01 +0000 (16:24 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 10 Jan 2003 16:24:01 +0000 (16:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docview.cpp

index b0e10bdc68e5b9ea212860989066452f777a139a..eb9276a7328dab42de21c81b8d09653419b32087 100644 (file)
@@ -43,6 +43,9 @@
     #include "wx/log.h"
 #endif
 
+#ifdef __WXMAC__
+    #include "wx/filename.h"
+#endif
 
 #ifdef __WXGTK__
     #include "wx/mdi.h"
@@ -317,6 +320,10 @@ bool wxDocument::OnSaveDocument(const wxString& file)
     Modify(FALSE);
     SetFilename(file);
     SetDocumentSaved(TRUE);
+#ifdef __WXMAC__
+    wxFileName fn(file) ;
+    fn.MacSetDefaultTypeAndCreator() ;
+#endif
     return TRUE;
 }