* Enabled concurrent duplicate check and cty lookup
    for country / azimuth.
pull/1/head
David Freese 2012-12-15 08:12:06 -06:00
rodzic d52579b3a1
commit 05b3ad0b9f
1 zmienionych plików z 16 dodań i 21 usunięć

Wyświetl plik

@ -2245,21 +2245,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) {
@ -2269,6 +2259,11 @@ if (bWF_only) return;
}
inpCountry->value(e->country);
inpCountry->position(0);
}
}
if (progdefaults.EnableDupCheck)
DupCheck();
restoreFocus(w);
}