kopia lustrzana https://github.com/jamescoxon/dl-fldigi
Dup Cty lookup
* Enabled concurrent duplicate check and cty lookup for country / azimuth.pull/1/head
rodzic
1884f2f2f7
commit
6fe5feef96
|
@ -2293,21 +2293,11 @@ if (bWF_only) return;
|
|||
if (inpTimeOn == inpTimeOn1) inpTimeOn2->value(inpTimeOn->value());
|
||||
else inpTimeOn1->value(inpTimeOn->value());
|
||||
|
||||
if (progdefaults.EnableDupCheck) {
|
||||
DupCheck();
|
||||
return restoreFocus(w);
|
||||
}
|
||||
|
||||
SearchLastQSO(inpCall->value());
|
||||
|
||||
if (inpAZ->value()[0])
|
||||
return restoreFocus(w);
|
||||
|
||||
if (!progdefaults.autofill_qso_fields)
|
||||
return restoreFocus(w);
|
||||
if (!inpAZ->value()[0] && progdefaults.autofill_qso_fields) {
|
||||
const struct dxcc* e = dxcc_lookup(inpCall->value());
|
||||
if (!e)
|
||||
return restoreFocus(w);
|
||||
if (e) {
|
||||
double lon, lat, distance, azimuth;
|
||||
if (locator2longlat(&lon, &lat, progdefaults.myLocator.c_str()) == RIG_OK &&
|
||||
qrb(lon, lat, -e->longitude, e->latitude, &distance, &azimuth) == RIG_OK) {
|
||||
|
@ -2317,6 +2307,11 @@ if (bWF_only) return;
|
|||
}
|
||||
inpCountry->value(e->country);
|
||||
inpCountry->position(0);
|
||||
}
|
||||
}
|
||||
|
||||
if (progdefaults.EnableDupCheck)
|
||||
DupCheck();
|
||||
|
||||
restoreFocus(w);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue