added code for respecting the creator & types when saving files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user