Minor interpolator improvements, display 2nd invalid version instead of first

This commit is contained in:
Klaus Basan
2019-05-09 01:05:05 +02:00
parent 15d88b37e5
commit da2b3e05fd
3 changed files with 7 additions and 12 deletions

View File

@@ -275,9 +275,11 @@ namespace BlackMisc
}
if (!m.isEmpty())
{
if (m_interpolationMessages.isEmpty())
if (m_interpolationMessages.sizeInt() == 2)
{
// display first message as a hint in the general log
// display second message as a hint in the general log
// we DO NOT display the first message, as this can happen due to pilot logging off
// if it happens twice we consider it worth displaying
CLogMessage::preformatted(m);
}
m_interpolationMessages.push_back(m);