Qt: Fix showing invalid shortcuts
Vicki Pfau vi@endrift.com
Thu, 06 Jul 2017 15:12:35 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/qt/input/InputModel.cpp
→
src/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;