summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/yuzu/configuration/configure_hotkeys.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp
index e1ddf61eb..7a09b66b4 100644
--- a/src/yuzu/configuration/configure_hotkeys.cpp
+++ b/src/yuzu/configuration/configure_hotkeys.cpp
@@ -71,16 +71,16 @@ void ConfigureHotkeys::Configure(QModelIndex index) {
71 } 71 }
72 72
73 index = index.sibling(index.row(), 1); 73 index = index.sibling(index.row(), 1);
74 auto* model = ui->hotkey_list->model(); 74 auto* const model = ui->hotkey_list->model();
75 auto previous_key = model->data(index); 75 const auto previous_key = model->data(index);
76 76
77 auto* hotkey_dialog = new SequenceDialog; 77 auto* const hotkey_dialog = new SequenceDialog;
78 int return_code = hotkey_dialog->exec();
79 78
80 auto key_sequence = hotkey_dialog->GetSequence(); 79 const int return_code = hotkey_dialog->exec();
81 80 const auto key_sequence = hotkey_dialog->GetSequence();
82 if (return_code == QDialog::Rejected || key_sequence.isEmpty()) 81 if (return_code == QDialog::Rejected || key_sequence.isEmpty()) {
83 return; 82 return;
83 }
84 84
85 if (IsUsedKey(key_sequence) && key_sequence != QKeySequence(previous_key.toString())) { 85 if (IsUsedKey(key_sequence) && key_sequence != QKeySequence(previous_key.toString())) {
86 QMessageBox::critical(this, tr("Error in inputted key"), 86 QMessageBox::critical(this, tr("Error in inputted key"),