mirror of https://github.com/odrling/Aegisub
Use OSXSetModified() from wx instead of using Carbon directly.
Originally committed to SVN as r4738.
This commit is contained in:
parent
61656d633b
commit
6bb5dd0bfd
|
@ -44,9 +44,6 @@
|
||||||
#include <wx/tokenzr.h>
|
#include <wx/tokenzr.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
|
||||||
#include <Carbon/Carbon.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ass_file.h"
|
#include "ass_file.h"
|
||||||
#include "audio_box.h"
|
#include "audio_box.h"
|
||||||
|
@ -902,8 +899,7 @@ void FrameMain::UpdateTitle() {
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
// On Mac, set the mark in the close button
|
// On Mac, set the mark in the close button
|
||||||
WindowRef wnd = (WindowRef)GetHandle();
|
OSXSetModified(subsMod);
|
||||||
SetWindowModified(wnd, subsMod);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Get current title
|
// Get current title
|
||||||
|
|
Loading…
Reference in New Issue