mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 11:31:51 -05:00
Make OK button the default on the LogQSO dialog window.
This commit is contained in:
parent
3caaf785bd
commit
bc635f0cd7
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user