From 58c901240b0b88c44ecf086f4891fc7169f71247 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 17 Sep 2019 21:04:34 +0100 Subject: [PATCH] Use call, mode, and frequency from Log QSO for worked before records The current frequency, mode and, call were incorrectly being used to create a new worked before record from a logged QSO. This meant that band changes etc. made before clicking "Ok" to log a QSO would be erroneously attributed to the worked before records. --- widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 4c72c931f..85d4a0130 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -5545,7 +5545,7 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call, , QByteArray const& ADIF) { QString date = QSO_date_on.toString("yyyyMMdd"); - if (!m_logBook.add (m_hisCall, grid, m_config.bands()->find(m_freqNominal), m_modeTx, ADIF)) + if (!m_logBook.add (call, grid, m_config.bands()->find(dial_freq), mode, ADIF)) { MessageBox::warning_message (this, tr ("Log file error"), tr ("Cannot open \"%1\"").arg (m_logBook.path ()));