Don't crash after double-click on a EU_VHF message with <...>.

This commit is contained in:
Joe Taylor 2020-04-25 16:28:05 -04:00
parent 47a3f9c736
commit f4c0e7803b

View File

@ -4520,6 +4520,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
QStringList w=message.string().mid(22).remove("<").remove(">").split(" ",QString::SkipEmptyParts);
int nw=w.size();
if(nw>=4) {
if(message_words.size()<3) return;
// Temporary? Correct for the fact that message.deCallAndGrid() does not work for EU VHF contest messages
QString t=message_words.at(nw-2);
int n=w.at(nw-2).toInt();