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"
|
#include "wx/log.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
#include "wx/filename.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
#include "wx/mdi.h"
|
#include "wx/mdi.h"
|
||||||
@@ -317,6 +320,10 @@ bool wxDocument::OnSaveDocument(const wxString& file)
|
|||||||
Modify(FALSE);
|
Modify(FALSE);
|
||||||
SetFilename(file);
|
SetFilename(file);
|
||||||
SetDocumentSaved(TRUE);
|
SetDocumentSaved(TRUE);
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
wxFileName fn(file) ;
|
||||||
|
fn.MacSetDefaultTypeAndCreator() ;
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user