Prevent a crash when clicking on a message without word 3 in Fieldday or FT Roundup mode.

This commit is contained in:
Uwe Risse 2022-12-07 00:23:10 +01:00
parent c6d13a7984
commit 2bbcd1010a

View File

@ -4589,7 +4589,7 @@ void MainWindow::guiUpdate()
if(m_ntx==2 or m_ntx==3) {
QStringList t=ui->tx2->text().split(' ', SkipEmptyParts);
int n=t.size();
m_xSent=t.at(n-2) + " " + t.at(n-1);
if (n > 3) m_xSent=t.at(n-2) + " " + t.at(n-1);
}
}
}