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,6 +84,7 @@ public:
} }
void Apply(Hotkey::HotkeyMap *hk_map) { void Apply(Hotkey::HotkeyMap *hk_map) {
if (combo.CmdName().size() || combo.Str().size())
hk_map->insert(make_pair(combo.CmdName(), combo)); hk_map->insert(make_pair(combo.CmdName(), combo));
} }