fix: Update from QRZ now fills the full address (and email/QSL-via/lat-lon), matching the edit-window Fetch

The right-click "Update from QRZ" only mapped QTH (city), name, state, county,
grid and zones — the street address and a few other fields QRZ returns were
dropped, so it looked half-updated next to the edit window's Fetch button.
Aligned it to fill the same set: address, email, qsl_via and lat/lon too.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
2026-07-18 12:26:23 +02:00
co-authored by Claude Opus 4.8
parent 80c5fdc095
commit 0838c2ec89
+13
View File
@@ -8682,6 +8682,19 @@ func (a *App) UpdateQSOsFromQRZ(ids []int64) (int, error) {
if r.QTH != "" {
q.QTH = r.QTH
}
if r.Address != "" {
q.Address = r.Address // full street address, not just the city (QTH)
}
if r.Email != "" {
q.Email = r.Email
}
if r.QSLVia != "" {
q.QSLVia = r.QSLVia
}
if r.Lat != 0 || r.Lon != 0 {
lat, lon := r.Lat, r.Lon
q.Lat, q.Lon = &lat, &lon
}
if err := a.qso.Update(a.ctx, q); err == nil {
changed++
}