Skip to content

Commit

Permalink
reset properties table on removing roi
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Feb 26, 2024
1 parent 8bb4100 commit 23ab823
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mantidimaging/gui/windows/spectrum_viewer/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ def remove_roi(self) -> None:
if self.roi_table_model.rowCount() == 0:
self.removeBtn.setEnabled(False)
self.disable_roi_properties()
else:
self.set_old_table_names()
self.current_roi = self.roi_table_model.row_data(self.selected_row)[0]
self.set_roi_properties()

def clear_all_rois(self) -> None:
"""
Expand Down

0 comments on commit 23ab823

Please sign in to comment.