diff options
author | asuratva <asuratva@proton.me> | 2024-05-18 10:58:37 +0000 |
---|---|---|
committer | asuratva <asuratva@proton.me> | 2024-05-18 10:58:37 +0000 |
commit | 1d7ee3161693ed016264a4940778a6e4b2258e38 (patch) | |
tree | 059f68cc39a725a0bc64538e5771ef3525aa6ec6 /src/gui/windows/quitdialog.cpp | |
parent | 9294f5a1ba84c7a4e947ab94a2645625e8a6171d (diff) | |
parent | 5570d9d1c2b1b5fba50283ec443088430332bb86 (diff) | |
download | plus-master.tar.gz plus-master.tar.bz2 plus-master.tar.xz plus-master.zip |
Diffstat (limited to 'src/gui/windows/quitdialog.cpp')
-rw-r--r-- | src/gui/windows/quitdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/quitdialog.cpp b/src/gui/windows/quitdialog.cpp index d1ceb1ad9..7ef2bc6e8 100644 --- a/src/gui/windows/quitdialog.cpp +++ b/src/gui/windows/quitdialog.cpp @@ -210,6 +210,7 @@ void QuitDialog::keyPressed(KeyEvent &event) { const InputActionT actionId = event.getActionId(); int dir = 0; + bool consume = true; PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wswitch-enum") @@ -229,10 +230,14 @@ void QuitDialog::keyPressed(KeyEvent &event) dir = 1; break; default: + consume = false; break; } PRAGMA45(GCC diagnostic pop) + if (consume) + event.consume(); + if (dir != 0) { STD_VECTOR<RadioButton*>::const_iterator it = mOptions.begin(); |