From 0838c2ec89ef27eb0ef25ca3fa4b55513ef6e0ec Mon Sep 17 00:00:00 2001 From: rouggy Date: Sat, 18 Jul 2026 12:26:23 +0200 Subject: [PATCH] fix: Update from QRZ now fills the full address (and email/QSL-via/lat-lon), matching the edit-window Fetch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- app.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app.go b/app.go index 74a7684..0c18158 100644 --- a/app.go +++ b/app.go @@ -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++ }