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
1 changed files with 3 additions and 1 deletions
|
@ -280,7 +280,9 @@ void HotkeyManager::Load() {
|
||||||
}
|
}
|
||||||
catch (...) {
|
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);
|
wxFileName backupfn(filename);
|
||||||
backupfn.SetFullName(_T("hotkeys.bak"));
|
backupfn.SetFullName(_T("hotkeys.bak"));
|
||||||
wxCopyFile(filename, backupfn.GetFullPath());
|
wxCopyFile(filename, backupfn.GetFullPath());
|
||||||
|
|
Loading…
Reference in a new issue