Text Capture

* Change contest capture behavior
    - disallow overwrite of CALL field if already filled
This commit is contained in:
David Freese 2017-10-14 20:36:35 -05:00
parent 35387dbb2e
commit 3302f0d4a5

View file

@ -476,7 +476,7 @@ int FTextRX::handle_qso_data(int start, int end)
Fl_Input2* target = 0;
if (progdefaults.logging != LOG_QSO) {
if (call.match(s)) { // point p to substring
if ((inpCall->value()[0] == 0) && call.match(s)) { // point p to substring
const regmatch_t& offsets = call.suboff()[1];
p = s + offsets.rm_so;
*(s + offsets.rm_eo) = '\0';