From d39397f4d1746572eba6930d3cc5b5cb17023ea6 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 29 Oct 2014 23:50:58 -0300 Subject: [PATCH] Minor change in KeyItem::restoreKeys() logic --- src/app/commands/cmd_keyboard_shortcuts.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/commands/cmd_keyboard_shortcuts.cpp b/src/app/commands/cmd_keyboard_shortcuts.cpp index 1b365d6ea..25c519b05 100644 --- a/src/app/commands/cmd_keyboard_shortcuts.cpp +++ b/src/app/commands/cmd_keyboard_shortcuts.cpp @@ -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: