-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2062 Spectrum Viewer ROI Desync Fix #2064
Conversation
From testing with the checker from the 2065-state-check branch, I think |
This is already done in this PR on line 426 After the roi is removed, the current roi is changed to the newly selected row in the table model |
I can get an inconsistent state, with the following.
Open dataset, open spectrum viewer Ctrl+D shows I can then trigger an error by editing one of the roi position spin boxes. |
Thanks, I think that solves it. I see a few false error messages from my checker (it does not handle all ROIs deleted, or being on the image tab properly). But I can't see anything that would trigger a user bug. Happy for a post release refactoring session. |
5d85392
to
81197be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the issue, and I can't see any new ones
Issue
Closes #2062
Description
Upon removing an ROI, the current roi and the old_table_names are refreshed to the newer state of the ROI Table and then the Properties Table is refreshed. This prevents the view checking for ROIs that no longer exist in the table when
on_data_in_table_change
is triggered by changing the visibility on a different ROI.Testing
make check
Acceptance Criteria