From dea3dff5fa9d244965482b853def387cf3e36f59 Mon Sep 17 00:00:00 2001 From: Nav Date: Tue, 18 Jul 2023 22:27:28 +0100 Subject: [PATCH] Corrected premature enabling of the hex viewer in the memory inspection pane --- .../TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp index 49fbb1cd..6113e50b 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/TargetMemoryInspectionPane.cpp @@ -645,7 +645,7 @@ namespace Bloom::Widgets } void TargetMemoryInspectionPane::onProgrammingModeDisabled() { - const auto disabled = this->targetState != Targets::TargetState::STOPPED; + const auto disabled = this->targetState != Targets::TargetState::STOPPED || !this->data.has_value(); this->hexViewerWidget->setDisabled(disabled); this->refreshButton->setDisabled(disabled); }