diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_hotkeys.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp index 55d23d329..e1ddf61eb 100644 --- a/src/yuzu/configuration/configure_hotkeys.cpp +++ b/src/yuzu/configuration/configure_hotkeys.cpp | |||
| @@ -66,8 +66,9 @@ void ConfigureHotkeys::Populate(const HotkeyRegistry& registry) { | |||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | void ConfigureHotkeys::Configure(QModelIndex index) { | 68 | void ConfigureHotkeys::Configure(QModelIndex index) { |
| 69 | if (index.parent() == QModelIndex()) | 69 | if (!index.parent().isValid()) { |
| 70 | return; | 70 | return; |
| 71 | } | ||
| 71 | 72 | ||
| 72 | index = index.sibling(index.row(), 1); | 73 | index = index.sibling(index.row(), 1); |
| 73 | auto* model = ui->hotkey_list->model(); | 74 | auto* model = ui->hotkey_list->model(); |