From 6bb5dd0bfd8553ce62251d90c0e791d8d05d5cb1 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Fri, 13 Aug 2010 00:33:54 +0000 Subject: [PATCH] Use OSXSetModified() from wx instead of using Carbon directly. Originally committed to SVN as r4738. --- aegisub/src/frame_main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index 3bed32738..4e76147b3 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -44,9 +44,6 @@ #include #endif -#ifdef __WXMAC__ -#include -#endif #include "ass_file.h" #include "audio_box.h" @@ -902,8 +899,7 @@ void FrameMain::UpdateTitle() { #ifdef __WXMAC__ // On Mac, set the mark in the close button - WindowRef wnd = (WindowRef)GetHandle(); - SetWindowModified(wnd, subsMod); + OSXSetModified(subsMod); #endif // Get current title