diff options
author | Eugene Sandulenko | 2016-02-12 19:18:54 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:06 +0100 |
commit | 1b27abafdc17ca4f5855b63cb53712fabd9693cb (patch) | |
tree | 03ebf9fef7e62a4184e8c4277a0d2d385db9e0a1 | |
parent | 1158987a1e4f078ed1ae699409fd26558486722e (diff) | |
download | scummvm-rg350-1b27abafdc17ca4f5855b63cb53712fabd9693cb.tar.gz scummvm-rg350-1b27abafdc17ca4f5855b63cb53712fabd9693cb.tar.bz2 scummvm-rg350-1b27abafdc17ca4f5855b63cb53712fabd9693cb.zip |
WAGE: Skip disabled command on shortcuts
-rw-r--r-- | engines/wage/menu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index 414d535f5a..aeb5792b44 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -547,7 +547,7 @@ void Menu::processMenuShortCut(byte flags, uint16 ascii) { if (flags & (Common::KBD_CTRL | Common::KBD_META)) { for (int i = 0; i < _items.size(); i++) for (int j = 0; j < _items[i]->subitems.size(); j++) - if (tolower(_items[i]->subitems[j]->shortcut) == ascii) { + if (_items[i]->subitems[j]->enabled && tolower(_items[i]->subitems[j]->shortcut) == ascii) { executeCommand(_items[i]->subitems[j]); break; } |