From 0d703cff69c35361eaff23a344939a0c26cba683 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 28 Feb 2012 01:22:58 +0000 Subject: [PATCH] Don't save empty hotkeys Originally committed to SVN as r6521. --- aegisub/src/hotkey_data_view_model.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/src/hotkey_data_view_model.cpp b/aegisub/src/hotkey_data_view_model.cpp index 80b5e6a2f..1ba14bb20 100644 --- a/aegisub/src/hotkey_data_view_model.cpp +++ b/aegisub/src/hotkey_data_view_model.cpp @@ -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; }