Fix Tape crash.

This commit is contained in:
Roman Telezhynskyi 2024-03-14 10:12:14 +02:00
parent 78d878322d
commit 47fd57113e

View File

@ -4780,6 +4780,11 @@ void TMainWindow::InitKnownMeasurements(QComboBox *combo)
SCASSERT(combo != nullptr) SCASSERT(combo != nullptr)
combo->addItem(tr("None"), QUuid()); combo->addItem(tr("None"), QUuid());
if (m_m == nullptr)
{
return;
}
QUuid const kmId = m_m->KnownMeasurements(); QUuid const kmId = m_m->KnownMeasurements();
if (!kmId.isNull() && !known.contains(kmId)) if (!kmId.isNull() && !known.contains(kmId))
{ {