From f63478255103d35a1cddeefda0960f089cf21d9b Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 1 May 2023 17:08:19 +0100 Subject: [PATCH] Tidying --- .../SnapshotManager/SnapshotManager.cpp | 9 +++++---- .../SnapshotManager/SnapshotManager.hpp | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.cpp index 3d3c5b07..38e3ec7e 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.cpp @@ -596,6 +596,11 @@ namespace Bloom::Widgets menu->addAction(this->deleteSnapshotAction); menu->addSeparator(); menu->addAction(this->openSnapshotCurrentDiffAction); + + if (this->selectedSnapshotItems.size() == 2) { + menu->addAction(this->openSnapshotDiffAction); + } + menu->addSeparator(); menu->addAction(this->restoreSnapshotAction); @@ -609,10 +614,6 @@ namespace Bloom::Widgets this->selectedSnapshotItems.size() == 1 && this->targetState == Targets::TargetState::STOPPED ); - if (this->selectedSnapshotItems.size() == 2) { - menu->addAction(this->openSnapshotDiffAction); - } - menu->exec(sourcePosition); } diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.hpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.hpp index e4636428..22589164 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.hpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotManager.hpp @@ -33,7 +33,6 @@ namespace Bloom::Widgets public: CreateSnapshotWindow* createSnapshotWindow = nullptr; - MemorySnapshotItem* selectedItem = nullptr; explicit SnapshotManager( const Targets::TargetMemoryDescriptor& memoryDescriptor,