From 8f127570e8f7110259fce86b1eb7b606d391c625 Mon Sep 17 00:00:00 2001 From: aa5sh <84428382+aa5sh@users.noreply.github.com> Date: Sat, 14 Sep 2024 14:10:52 -0500 Subject: [PATCH] Bug with Change for poll 420 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. --- ui/NewContactWidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/NewContactWidget.cpp b/ui/NewContactWidget.cpp index 64693bdd..7921550b 100644 --- a/ui/NewContactWidget.cpp +++ b/ui/NewContactWidget.cpp @@ -1706,6 +1706,8 @@ void NewContactWidget::saveExternalContact(QSqlRecord record) if ( savedCallsign.isEmpty() ) return; + changeCallsignManually(savedCallsign); + QSqlTableModel model; model.setTable("contacts"); @@ -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)