From 50f6d65ace9e99e77f745ca2501c3a6062a3989a Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sat, 22 Sep 2007 03:07:16 +0000 Subject: [PATCH] Set the mark in the window close button to signal document modified, rather than prepending a star to the window title, on wxMac. Originally committed to SVN as r1576. --- aegisub/frame_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aegisub/frame_main.cpp b/aegisub/frame_main.cpp index fa773dceb..94e1e6b64 100644 --- a/aegisub/frame_main.cpp +++ b/aegisub/frame_main.cpp @@ -765,13 +765,21 @@ void FrameMain::UpdateTitle() { // Create ideal title wxString newTitle = _T(""); +#ifndef __WXMAC__ if (subsMod) newTitle << _T("* "); +#endif if (AssFile::top->filename != _T("")) { wxFileName file (AssFile::top->filename); newTitle << file.GetFullName(); } else newTitle << _T("Untitled"); newTitle << _T(" - Aegisub ") << GetAegisubLongVersionString(); + +#ifdef __WXMAC__ + // On Mac, set the mark in the close button + WindowRef wnd = (WindowRef)MacGetWindowRef(); + SetWindowModified(wnd, subsMod); +#endif // Get current title wxString curTitle = GetTitle();