mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix showing invalid shortcuts
This commit is contained in:
parent
dfd111d389
commit
0e03a612eb
|
@ -74,7 +74,7 @@ QVariant InputModel::data(const QModelIndex& index, int role) const {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue