diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-10 01:47:18 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-10 01:47:20 +0200 |
commit | cf6cdd20f8a62179891476481c45abff751e0ead (patch) | |
tree | ad6b2885514657e9048525240a14601fac3c84d4 /src | |
parent | configure_dialog: Amend constructor initializer list order (diff) | |
download | yuzu-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 |
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) { } 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(); |