From 830cd87489d06ccad7cd186cac6410a6a40979a4 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sun, 21 Apr 2024 11:16:55 +0200 Subject: [PATCH] Make right-click mouse press events less error-prone. (cherry picked from commit a5aa00c27f0a405f2d6c0ee2522057b9e59e9ecf) --- widgets/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index cf716255c..bf5816d2f 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -6684,9 +6684,11 @@ void MainWindow::mousePressEvent(QMouseEvent *event) m_config.setSpecial_Q65_Pileup(); m_specOp=m_config.special_op_id(); on_actionQ65_triggered(); + ui->q65Button->clearFocus(); } if(ui->jt65Button->hasFocus() && (event->button() & Qt::RightButton)) { // switch to JT9 mode on_actionJT9_triggered(); + ui->jt65Button->clearFocus(); } }