all repos — mgba @ 0e03a612eb4299911c88e92b34dcb759e87e3cd1

mGBA Game Boy Advance Emulator

Qt: Fix showing invalid shortcuts
Vicki Pfau vi@endrift.com
Thu, 06 Jul 2017 15:12:35 -0700
commit

0e03a612eb4299911c88e92b34dcb759e87e3cd1

parent

dfd111d3895aba25d5f5ec68b64977beb68ed69e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/input/InputModel.cppsrc/platform/qt/input/InputModel.cpp

@@ -74,7 +74,7 @@ switch (index.column()) {

case 0: return item->visibleName(); case 1: - if (item->item) { + if (item->item && item->item->shortcut() > 0) { return QKeySequence(item->item->shortcut()).toString(QKeySequence::NativeText); } break;