Skip to content

Commit

Permalink
BUG: Fix localization and inconsistent state in ctkModalityWidget
Browse files Browse the repository at this point in the history
There were several issues with the imaging modality selector widget (ctkModalityWidget):
- when imaging modality abbreviations (CT, MRI, XA, ...) were localized then the widget did not work at all, because the checkbox text was used to identify the checkboxes
- widget state was stored redundantly in SelectedModalities and VisibleModalities variables and the checkbox properties; and these were often inconsistent

Fixed by using Qt object names to identify checkboxes; and removing SelectedModalities and VisibleModalities variables (store widget state in the checkbox properties).
  • Loading branch information
lassoan committed Apr 12, 2023
1 parent 1e82ef4 commit cd194ff
Show file tree
Hide file tree
Showing 2 changed files with 252 additions and 69 deletions.
Loading

0 comments on commit cd194ff

Please sign in to comment.