mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-12 06:38:19 +00:00
Fix bug assigning keys to menus w/o commands when we search (fix #1260)
This commit is contained in:
parent
b75d87c5fc
commit
3ba712f038
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user