summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-10 01:47:18 +0200
committerLioncash <mathew1800@gmail.com>2019-04-10 01:47:20 +0200
commitcf6cdd20f8a62179891476481c45abff751e0ead (patch)
treead6b2885514657e9048525240a14601fac3c84d4
parentconfigure_dialog: Amend constructor initializer list order (diff)
downloadyuzu-cf6cdd20f8a62179891476481c45abff751e0ead.tar
yuzu-cf6cdd20f8a62179891476481c45abff751e0ead.tar.gz
yuzu-cf6cdd20f8a62179891476481c45abff751e0ead.tar.bz2
yuzu-cf6cdd20f8a62179891476481c45abff751e0ead.tar.lz
yuzu-cf6cdd20f8a62179891476481c45abff751e0ead.tar.xz
yuzu-cf6cdd20f8a62179891476481c45abff751e0ead.tar.zst
yuzu-cf6cdd20f8a62179891476481c45abff751e0ead.zip
-rw-r--r--src/yuzu/configuration/configure_hotkeys.cpp3
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) {
}
void ConfigureHotkeys::Configure(QModelIndex index) {
- if (index.parent() == QModelIndex())
+ if (!index.parent().isValid()) {
return;
+ }
index = index.sibling(index.row(), 1);
auto* model = ui->hotkey_list->model();