diff --git a/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp b/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp index 5ae04d66..e458794d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp @@ -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() {