Adds a check for not displaying null hotkeys in the preferences dialog.

This commit is contained in:
Fabian Müller 2013-01-02 00:56:48 +00:00
parent 432c61dd89
commit d6fd3d00f6

View file

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