Minor change in KeyItem::restoreKeys() logic

This commit is contained in:
David Capello 2014-10-29 23:50:58 -03:00
parent 8bec9be4b2
commit d39397f4d1

View File

@ -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: