HomePhabricator
Diffusion MITK dca8a8f6c291

Remove EnabledMode from QmitkToolSelectionBox

Description

Remove EnabledMode from QmitkToolSelectionBox

Summary:
Also improved the enabled check by checking for the presence of
any labels, too.

Fixes T29357

Test Plan:

  • Load image
  • Create segmentation
  • Add layer
  • Tools should be disabled in layer 1 as it doesn't contain any labels
  • Add label, tools should be enabled
  • Go to layer 0, tool are still activated as it contains a label as well
  • Delete the label in layer 0, tools should be disabled now

Reviewers: kalali, O1 MITK Reviewer Group I

Reviewed By: kalali, O1 MITK Reviewer Group I

Tags: Breaking Change

Maniphest Tasks: T29357

Differential Revision: https://phabricator.mitk.org/D738

Details

Provenance
kislinskAuthored on Oct 17 2022, 11:28 AM
kislinskPushed on Oct 17 2022, 3:12 PM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITK09007650bd19: Fix wrong view initialization when creating a new segmentation node
rMITKc2cc1b889425: Remove EnabledMode from QmitkToolSelectionBox
Branches
Unknown
Tags
Unknown
Tasks
T29357: [Segmentation] Tools can be activated without selected label