Segmentation tools are disabled after switching between different modules even though a segmentation is selected. Also happens when starting the application while the segmentation module is hidden, afterwards the tools stay disabled even after creation of a new segmentation.
|Resolved||None||T2494 META: Create usable end-user application / demo (3M3)|
|Resolved||None||T2656 Segmentation module for 3M|
|Resolved||None||T2788 Segmentation tools are disabled|
QmitkToolSelectionBox::SetGUIEnabledAccordingToToolManagerState() is responsible for activating the widget completely or not.
it tests the member variable m_Enabled, which will be set to zero from somewhere (its hard to find where, because it overloads setEnabled of QWidget).
m_Enabled stays then zero, and the tools will be never again enabled.
With following commit we introduce a workaround,
by preliminary forcing m_Enabled to true,
and everythings seems to work fine for now.
But, Daniel (Maleike) can you please look why this happens.
Please check at least methods
We could also shortly discuss this
[SVN revision 19950]
FIX (#2788): further simplify logic and remove unnecessary variable