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:
@@ -8682,6 +8682,19 @@ func (a *App) UpdateQSOsFromQRZ(ids []int64) (int, error) {
|
|||||||
if r.QTH != "" {
|
if r.QTH != "" {
|
||||||
q.QTH = 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 {
|
if err := a.qso.Update(a.ctx, q); err == nil {
|
||||||
changed++
|
changed++
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user