mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 15:18:23 +00:00
Minor change in KeyItem::restoreKeys() logic
This commit is contained in:
parent
8bec9be4b2
commit
d39397f4d1
@ -71,12 +71,11 @@ public:
|
||||
}
|
||||
|
||||
void restoreKeys() {
|
||||
if (m_key) {
|
||||
if (m_keyOrig)
|
||||
*m_key = *m_keyOrig;
|
||||
else if (m_menuitem)
|
||||
m_menuitem->setKey(NULL);
|
||||
}
|
||||
if (m_key && m_keyOrig)
|
||||
*m_key = *m_keyOrig;
|
||||
|
||||
if (m_menuitem && !m_keyOrig)
|
||||
m_menuitem->setKey(NULL);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user