There seems to be a bug in the selection mechanism.
When I load a surface S1, select it, de-select it and then load second surface S2 I get a strange behavior. In the Datamanager the first surface S1 is shaded light gray and behaves as if it is selected, i.e. it will be listed as a selected node in
std::vector<mitk::DataNode*> nodes = this->GetDataManagerSelection();
I cannot properly de-select the surface S1. The behavior stays even if I try to select and de-select it several times with the mouse.
If I delete S1 and re-load it, then S2 becomes "un-de-selectable".
The same thing happens for images!