Page MenuHomePhabricator

Data manager item highlighting not updated after changing data manager selection through BlueBerry
Closed, ResolvedPublic

Description

I need to change the data manager selection from my workbench parts, e.g. views or an editor. QmitkAbstractView provides a SetDataManagerSelection function to set the selection of the Data Manager view part through BlueBerry. However, the item highlighting does not change in the Data Manager view.

I found that this is because of a trivial issue.

QmitkDataNodeSelectionProvider::SetSelection does not override berry::QtSelectionProvider::SetSelection, because the constness of the parameter does not match. In the BlueBerry API the constant smart pointer is taken as const ref, but in the derived class as value.

A fix is here:

https://github.com/NifTK/MITK/commit/082bb843f10b4300dff7ce1ad8a72ccfe9c416aa

The fix is based on 2015.05.2, but it probably applies to the current master without conflict. (I checked and it has not been fixed yet.)