Skip to content

Commit

Permalink
Modified PR #463 - WJSTX: SOTA/POTA/WWFF/SIG are being added to the l…
Browse files Browse the repository at this point in the history
…ogged QSO
  • Loading branch information
aa5sh authored and foldynl committed Sep 25, 2024
1 parent 3e3b736 commit a4e9e71
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
20 changes: 20 additions & 0 deletions ui/NewContactWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit a4e9e71

Please sign in to comment.