fix(entity): show the QSO's own entity, and date the ClubLog exception
Two faults behind one screenshot: 3Y0K, recorded in the log as Bouvet Island, showing the Antarctica matrix. SELECTING A QSO now shows what that QSO records. The panel asked WorkedBefore with no DXCC hint, and a hint of zero makes the backend resolve the entity from cty.dat and the ClubLog exceptions AS THEY ARE TODAY — right for a live contact, wrong for one being looked at in the log. The repo's own "infer from past QSOs" path never ran, because the hint was no longer zero by the time it got there. Hence Antarctica, and "5 QSOs with this entity" against "11 with this call": two different entities, one of them nobody had asked about. The selected row's dxcc now travels with it and is passed as the hint. Browsing the log shows what the log says, even where the log is wrong. Correcting an entity stays a deliberate act — right-click, Update from ClubLog. BACK-ENTERING A QSO now resolves the exception at the CONTACT'S date. An exception carries a validity window and a DXpedition's window closes: 3Y0K typed months later, with the activation's own date in the form, was resolved against today, matched nothing, and fell back to cty.dat. Both callers pass the date they already hold — the entry strip's, and in the editor the record's own. The date is trusted to move the resolution BACKWARDS only. A half-typed "2026-0" must not send the lookup to the year 20, and a mistyped future date must not resolve against a window that has not opened; both fall back to now. Midday rather than midnight, because a window given in whole days is inclusive of its end date and 00:00 sits exactly on the boundary.
This commit is contained in:
Vendored
+2
-2
@@ -703,9 +703,9 @@ export function LogUDPLoggedADIF(arg1:string):Promise<number>;
|
||||
|
||||
export function LogUIError(arg1:string,arg2:string,arg3:string):Promise<void>;
|
||||
|
||||
export function LookupCallsign(arg1:string):Promise<lookup.Result>;
|
||||
export function LookupCallsign(arg1:string,arg2:string):Promise<lookup.Result>;
|
||||
|
||||
export function LookupCallsignFresh(arg1:string):Promise<lookup.Result>;
|
||||
export function LookupCallsignFresh(arg1:string,arg2:string):Promise<lookup.Result>;
|
||||
|
||||
export function MotorNudgeKHz(arg1:number):Promise<void>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user