mirror of https://github.com/odrling/Aegisub
Add a workaround for [Hotkeys] header detection, all this code will go away when the Hotkeys are redone.
Originally committed to SVN as r4749.
This commit is contained in:
parent
d83c59819f
commit
6742a17649
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue