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:
Amar Takhar 2010-08-17 04:44:18 +00:00
parent d83c59819f
commit 6742a17649

View file

@ -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());