Don't save empty hotkeys

Originally committed to SVN as r6521.
This commit is contained in:
Thomas Goyne 2012-02-28 01:22:58 +00:00
parent 95a1e187a0
commit 0d703cff69
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ public:
}
void Apply(Hotkey::HotkeyMap *hk_map) {
hk_map->insert(make_pair(combo.CmdName(), combo));
if (combo.CmdName().size() || combo.Str().size())
hk_map->insert(make_pair(combo.CmdName(), combo));
}
unsigned int GetChildren(wxDataViewItemArray &) const { return 0; }