Fixed issues with callsigns selected after unsolicited ALLCALL

This commit is contained in:
Jordan Sherer 2018-09-13 01:45:27 -04:00
parent 735acb000e
commit 86d47c83b4

View File

@ -9081,11 +9081,13 @@ QString MainWindow::callsignSelected(){
}
}
#if SELECT_CALLSIGN_FOR_INPUT_TEXT
auto text = ui->extFreeTextMsgEdit->toPlainText().left(11); // Maximum callsign is 6 + / + 4 = 11 characters
auto calls = Varicode::parseCallsigns(text);
if(!calls.isEmpty() && text.startsWith(calls.first()) && calls.first() != m_config.my_callsign()){
return calls.first();
}
#endif
return QString();
}