Summary of bug description
actual behaviour: QmitkDataStorageComboBox does not emit a signal when last node is removed
expected behaviour: It should emit: OnSelectionChanged(NULL)
Cause of the bug
Index validity is checked; if valid, a signal is emitted with the current selected node as parameter. But, when last node is removed, index is -1, and therefore not a valid index; (clear, box has no content)
Proposed solution
If index is -1, a signal is emitted with NULL as parameter, meaning that the box is empty
Affected classes
How will the bugfix get tested?
unit test possible, but needs graphical test; (load an image, remove it, check if OnSelectionChanged(NULL) is emitted).
