From 3c109ee898ca9c6975add5cbf54ad41da6fe0446 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Fri, 1 Aug 2025 19:52:41 +0500 Subject: [PATCH] Fix a crash when in settings-only mode and attempting to bind a hotkey already in use --- src/qt/qt_settingsinput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/qt_settingsinput.cpp b/src/qt/qt_settingsinput.cpp index dc92766dc..af96ff22c 100644 --- a/src/qt/qt_settingsinput.cpp +++ b/src/qt/qt_settingsinput.cpp @@ -21,6 +21,7 @@ #include #include +#include #include extern "C" { @@ -236,7 +237,7 @@ SettingsInput::on_tableKeys_cellDoubleClicked(int row, int col) for(int x = 0; x < NUM_ACCELS; x++) { if(QString::fromStdString(acc_keys_t[x].seq) == keyseq.toString(QKeySequence::PortableText)) { // That key is already in use - main_window->showMessage(MBX_ANSI & MBX_INFO, tr("Bind conflict"), tr("This key combo is already in use."), false); + QMessageBox::warning(this, tr("Bind conflict"), tr("This key combo is already in use."), QMessageBox::StandardButton::Ok); return; } }