Fix bug assigning keys to menus w/o commands when we search (fix #1260)

This commit is contained in:
David Capello 2016-09-23 11:03:40 -03:00
parent b75d87c5fc
commit 3ba712f038

View File

@ -75,6 +75,7 @@ public:
}
Key* key() { return m_key; }
AppMenuItem* menuitem() const { return m_menuitem; }
void restoreKeys() {
if (m_key && m_keyOrig)
@ -502,7 +503,8 @@ private:
KeyItem* copyItem =
new KeyItem(itemText,
keyItem->key(), nullptr, 0);
keyItem->key(),
keyItem->menuitem(), 0);
searchList()->addChild(copyItem);
}
}