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.
This commit is contained in:
Bill Somerville 2019-09-17 21:04:34 +01:00
parent a3efe8117c
commit 58c901240b
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 1 additions and 1 deletions

View File

@ -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 ()));