Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

configure_hotkeys: Pass the dialog as a parent to SequenceDialog()

Lioncash540b874cf357
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp
index 31347ce5a9..a7a8752e59 100644
--- a/src/yuzu/configuration/configure_hotkeys.cpp
+++ b/src/yuzu/configuration/configure_hotkeys.cpp
@@ -74,7 +74,7 @@ void ConfigureHotkeys::Configure(QModelIndex index) {
auto* const model = ui->hotkey_list->model();
const auto previous_key = model->data(index);
- SequenceDialog hotkey_dialog;
+ SequenceDialog hotkey_dialog{this};
const int return_code = hotkey_dialog.exec();
const auto key_sequence = hotkey_dialog.GetSequence();