Fixed seg fault bug in reactivation of insight window

This commit is contained in:
Nav
2023-05-07 20:04:15 +01:00
parent 8a6f1e8659
commit 602e08f97a

View File

@@ -778,6 +778,16 @@ namespace Bloom
this->eepromInspectionButton->setChecked(false);
this->eepromInspectionButton->setDisabled(true);
}
if (this->flashInspectionPane != nullptr) {
this->flashInspectionPane->deactivate();
this->flashInspectionPane->deleteLater();
this->flashInspectionPane = nullptr;
this->bottomPanel->setVisible(false);
this->flashInspectionButton->setChecked(false);
this->flashInspectionButton->setDisabled(true);
}
}
void InsightWindow::deactivate() {