From f39f4a3dc585ef4c8685d547c9213cf032588516 Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Mon, 26 Feb 2024 15:20:03 +0000 Subject: [PATCH] prevent the RITS_ROI from becoming the last_clicked_roi --- mantidimaging/gui/windows/spectrum_viewer/presenter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mantidimaging/gui/windows/spectrum_viewer/presenter.py b/mantidimaging/gui/windows/spectrum_viewer/presenter.py index 5bb7fb6e5da..812b7dc8baa 100644 --- a/mantidimaging/gui/windows/spectrum_viewer/presenter.py +++ b/mantidimaging/gui/windows/spectrum_viewer/presenter.py @@ -137,9 +137,10 @@ def handle_roi_moved(self, force_new_spectrums: bool = False) -> None: self.view.set_spectrum(name, self.model.get_spectrum(name, self.spectrum_mode)) def handle_roi_clicked(self, roi) -> None: - self.view.current_roi = roi.name - self.view.last_clicked_roi = roi.name - self.view.set_roi_properties() + if not roi.name == ROI_RITS: + self.view.current_roi = roi.name + self.view.last_clicked_roi = roi.name + self.view.set_roi_properties() def redraw_spectrum(self, name: str) -> None: """