From db6e3d84c1e67be2945e37d88ab7a40d4cd5126e Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 1 Aug 2009 02:00:30 +0000 Subject: [PATCH] Fix setting the window as modified, I don't know if this will work in 10.4.. (fix from jfs) Originally committed to SVN as r3344. --- aegisub/src/frame_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index e93d380bc..c1e3b22e2 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -84,7 +84,7 @@ #include "charset_conv.h" #include "libresrc/libresrc.h" #ifdef __WXMAC__ -#include +#include #endif @@ -935,10 +935,10 @@ void FrameMain::UpdateTitle() { } else newTitle << _T("untitled"); #endif - + #ifdef __WXMAC__ // On Mac, set the mark in the close button - WindowRef wnd = (WindowRef)MacGetWindowRef(); + WindowRef wnd = (WindowRef)GetHandle(); SetWindowModified(wnd, subsMod); #endif