Adds a check for not displaying null hotkeys in the preferences dialog.
This commit is contained in:
parent
432c61dd89
commit
d6fd3d00f6
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ std::string get_names(HOTKEY_COMMAND id) {
|
|||
|
||||
std::vector<std::string> names;
|
||||
BOOST_FOREACH(const hotkey::hotkey_item& item, hotkeys_) {
|
||||
if (item.get_id() == id) {
|
||||
if (item.get_id() == id && (!item.null()) ) {
|
||||
names.push_back(item.get_name());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue