From a4e9e715d70b5e1d658d25c4c227da21199b6593 Mon Sep 17 00:00:00 2001 From: aa5sh <84428382+aa5sh@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:41:05 +0200 Subject: [PATCH] Modified PR #463 - WJSTX: SOTA/POTA/WWFF/SIG are being added to the logged QSO --- Changelog | 1 + ui/NewContactWidget.cpp | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/Changelog b/Changelog index acb8b912..5de4347f 100644 --- a/Changelog +++ b/Changelog @@ -7,6 +7,7 @@ TBC - 0.39.0 - [CHANGED] - Logbook - CTRL-A (Select All) is disabled - [CHANGED] - Awards - Bands are displayed based on the Settings (issue #452) - [CHANGED] - WSJTX - More reliable detection of CQ stations (PR #471 @aa5sh) +- [CHANGED] - WJSTX - SOTA/POTA/WWFF/SIG are being added to the logged QSO (PR #463 @aa5sh) - Fixed WSJT-X does not emit band change if rig is disconnected (issue #447) - Fixed Wrong import of ADIF file of another log program (issue #455) - Fixed WSJTX log record is stored incorrectly if it contains non-ASCII chars(issue #458) diff --git a/ui/NewContactWidget.cpp b/ui/NewContactWidget.cpp index cb53ed38..19f883f8 100644 --- a/ui/NewContactWidget.cpp +++ b/ui/NewContactWidget.cpp @@ -1755,6 +1755,26 @@ void NewContactWidget::saveExternalContact(QSqlRecord record) && !uiDynamic->stateEdit->text().isEmpty() ) record.setValue("state", uiDynamic->stateEdit->text()); + if ( record.value("pota_ref").toString().isEmpty() + && !uiDynamic->potaEdit->text().isEmpty()) + record.setValue("pota_ref", uiDynamic->potaEdit->text()); + + if ( record.value("sota_ref").toString().isEmpty() + && !uiDynamic->sotaEdit->text().isEmpty()) + record.setValue("sota_ref", uiDynamic->sotaEdit->text()); + + if ( record.value("sig_intl").toString().isEmpty() + && !uiDynamic->sigEdit->text().isEmpty()) + record.setValue("sig_intl", uiDynamic->sigEdit->text()); + + if ( record.value("sig_info_intl").toString().isEmpty() + && !uiDynamic->sigInfoEdit->text().isEmpty()) + record.setValue("sig_info_intl", uiDynamic->sigInfoEdit->text()); + + if ( record.value("wwff_ref").toString().isEmpty() + && !uiDynamic->wwffEdit->text().isEmpty()) + record.setValue("wwff_ref", uiDynamic->wwffEdit->text()); + // fix ITUz and CQz from callbook, if necessary if ( record.value("ituz").toString() != uiDynamic->ituEdit->text() ) record.setValue("ituz", uiDynamic->ituEdit->text());