Destroying RAM and EEPROM inspection panes upon Insight deactivation

This commit is contained in:
Nav
2021-12-22 23:11:56 +00:00
parent bfea6b7c8f
commit 8717b5f581

View File

@@ -498,6 +498,22 @@ void InsightWindow::destroyPanes() {
this->targetRegistersButton->setChecked(false);
this->targetRegistersButton->setDisabled(true);
}
if (this->ramInspectionPane != nullptr) {
this->ramInspectionPane->deactivate();
this->ramInspectionPane->deleteLater();
this->bottomPanel->setVisible(false);
this->ramInspectionButton->setChecked(false);
this->ramInspectionButton->setDisabled(true);
}
if (this->eepromInspectionPane != nullptr) {
this->eepromInspectionPane->deactivate();
this->eepromInspectionPane->deleteLater();
this->bottomPanel->setVisible(false);
this->eepromInspectionButton->setChecked(false);
this->eepromInspectionButton->setDisabled(true);
}
}
void InsightWindow::deactivate() {