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,