Avoid crash when closing interpolation log display

Remark: This is a hack solving the issue, but it is not clear why it is needed
This commit is contained in:
Klaus Basan
2018-05-30 18:09:55 +02:00
parent 5ff1e82cb7
commit fe8eb89d8b

View File

@@ -36,7 +36,10 @@ namespace BlackGui
}
CInterpolationLogDisplayDialog::~CInterpolationLogDisplayDialog()
{ }
{
//! \todo KB 2018-05 this is a hack, I have no idea why I need to invalidate the parent. But without doing it, the dtor of comp_InterpolationLogDisplay is called tywice
ui->comp_InterpolationLogDisplay->setParent(nullptr);
}
void CInterpolationLogDisplayDialog::setSimulator(CSimulatorCommon *simulatorCommon)
{