From d4a27b1bac935d9696769ee8dff8a2a7e1df067b Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 25 Dec 2021 01:44:48 +0000 Subject: [PATCH] Fixed bug with annotation items not inheriting disabled state from parent scene --- .../HexViewerWidget/ByteItemGraphicsScene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp index 70988053..9236bc77 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp @@ -100,11 +100,13 @@ void ByteItemGraphicsScene::refreshRegions() { for (const auto& focusedRegion : this->focusedMemoryRegions) { auto* annotationItem = new AnnotationItem(focusedRegion, AnnotationItemPosition::BOTTOM); + annotationItem->setEnabled(this->enabled); this->addItem(annotationItem); this->annotationItems.emplace_back(annotationItem); if (focusedRegion.dataType != MemoryRegionDataType::UNKNOWN) { auto* valueAnnotationItem = new ValueAnnotationItem(focusedRegion); + valueAnnotationItem->setEnabled(this->enabled); this->addItem(valueAnnotationItem); this->annotationItems.emplace_back(valueAnnotationItem); this->valueAnnotationItems.emplace_back(valueAnnotationItem);