Corrected bug with memory inspection panes not disabling the hex view widget in certain instances, when target execution is resumed

This commit is contained in:
Nav
2021-12-08 20:11:20 +00:00
parent 3b80954f72
commit 735f79c5f0

View File

@@ -159,15 +159,13 @@ void TargetMemoryInspectionPane::onTargetStateChanged(Targets::TargetState newSt
using Targets::TargetState; using Targets::TargetState;
this->targetState = newState; this->targetState = newState;
if (this->activated) { if (newState == TargetState::STOPPED && this->activated) {
if (newState == TargetState::STOPPED) { this->refreshMemoryValues([this] {
this->refreshMemoryValues([this] { this->hexViewerWidget->setDisabled(false);
this->hexViewerWidget->setDisabled(false); });
});
} else { } else if (newState == TargetState::RUNNING) {
this->hexViewerWidget->setDisabled(true); this->hexViewerWidget->setDisabled(true);
}
} }
} }