Skip to content

Commit

Permalink
Bug with Change for poll 420
Browse files Browse the repository at this point in the history
When logging contacts it is not working as intended here.  I noticed that when I log a station in WSJT-X the Status wipes the callsign before the logged message goes through so the information is not there to save.  I'm not sure if this is the best way to address but it seems to work.  Not sure if it needs to be fixed a different way.
  • Loading branch information
aa5sh committed Sep 14, 2024
1 parent c48a12a commit 8f12757
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/NewContactWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,8 @@ void NewContactWidget::saveExternalContact(QSqlRecord record)

if ( savedCallsign.isEmpty() ) return;

changeCallsignManually(savedCallsign);

QSqlTableModel model;

model.setTable("contacts");
Expand Down Expand Up @@ -1759,6 +1761,10 @@ void NewContactWidget::saveExternalContact(QSqlRecord record)
&& !uiDynamic->dokEdit->text().isEmpty() )
record.setValue("darc_dok", uiDynamic->dokEdit->text());

if ( record.value("pota_ref").toString().isEmpty()
&& !uiDynamic->potaEdit->text().isEmpty())
record.setValue("pota_ref", uiDynamic->potaEdit->text());

// information depending on QTH (Grid)
const QString &savedGrid = record.value("gridsquare").toString();
if ( savedGrid.startsWith(uiDynamic->gridEdit->text(), Qt::CaseSensitivity::CaseInsensitive)
Expand Down

0 comments on commit 8f12757

Please sign in to comment.