diff --git a/aegisub/src/hotkeys.cpp b/aegisub/src/hotkeys.cpp index 065305aa3..32ea12a34 100644 --- a/aegisub/src/hotkeys.cpp +++ b/aegisub/src/hotkeys.cpp @@ -280,7 +280,9 @@ void HotkeyManager::Load() { } catch (...) { } - if (header != _T("[Hotkeys]")) { + + // if (header != _T("[Hotkeys]")) { + if (!header.EndsWith(_T("[Hotkeys]"))) { // Workaround for OSX, will be useless when Hotkeys are redone. wxFileName backupfn(filename); backupfn.SetFullName(_T("hotkeys.bak")); wxCopyFile(filename, backupfn.GetFullPath());