The workbench crashes if a segmentation tool is active and the workbench is closed.
This happens because the ActiveToolChanged is called if the active tool changes. The destructor of the Segmentation View is called when the workbench is closed and the tool active tool is deactivated.
At that time the render window part is not available anymore and the access to this class instance inside QmitkSegmentationView::ActiveToolChanged leads to a crash.
To reproduce:
- open MITK, load an image
- close the Standard Display, open the MxN Display
- open the segmentation plugin view and create a new segmentation node
- activate a tool and close the workbench via "x"