summaryrefslogtreecommitdiff
path: root/widgets/logqso.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2022-08-08 23:08:31 +0200
committerChristoph Berg <myon@debian.org>2022-08-08 23:08:31 +0200
commitdca111ba9c5235bb1a16d62c6999939bc1ac4cbe (patch)
tree4eec80a7d177c16b0cbfe19219490c5b5c635367 /widgets/logqso.cpp
parent231d846d6f285b93cf8fa3df50492d6b51446a4c (diff)
parent43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff)
Update upstream source from tag 'upstream/2.6.0_rc2+repack'
Update to upstream version '2.6.0~rc2+repack' with Debian dir 381b71368ce7055e3f42f51abf3971cbbbbbd178
Diffstat (limited to 'widgets/logqso.cpp')
-rwxr-xr-xwidgets/logqso.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/logqso.cpp b/widgets/logqso.cpp
index f4927449..e87a8852 100755
--- a/widgets/logqso.cpp
+++ b/widgets/logqso.cpp
@@ -5,6 +5,7 @@
#include <QSettings>
#include <QStandardPaths>
#include <QDir>
+#include <QPushButton>
#include "logbook/logbook.h"
#include "MessageBox.hpp"
@@ -109,6 +110,15 @@ void LogQSO::initLogQSO(QString const& hisCall, QString const& hisGrid, QString
Radio::Frequency dialFreq, bool noSuffix, QString xSent, QString xRcvd)
{
if(!isHidden()) return;
+
+ QPushButton* okBtn = ui->buttonBox->button(QDialogButtonBox::Ok);
+ okBtn->setAutoDefault(true);
+ okBtn->setDefault(true);
+ okBtn->setFocus();
+ QPushButton* caBtn = ui->buttonBox->button(QDialogButtonBox::Cancel);
+ caBtn->setAutoDefault(false);
+ caBtn->setDefault(false);
+
ui->call->setText (hisCall);
ui->grid->setText (hisGrid);
ui->name->clear ();