Fix Tape crash.
This commit is contained in:
parent
78d878322d
commit
47fd57113e
|
@ -4780,6 +4780,11 @@ void TMainWindow::InitKnownMeasurements(QComboBox *combo)
|
|||
SCASSERT(combo != nullptr)
|
||||
combo->addItem(tr("None"), QUuid());
|
||||
|
||||
if (m_m == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QUuid const kmId = m_m->KnownMeasurements();
|
||||
if (!kmId.isNull() && !known.contains(kmId))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user