Locked History Attachments

ChangeRequests/2723

Summary of bug description

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

QmitkDataStorageComboBox.cpp

How will the bugfix get tested?

unit test possible, but needs graphical test; (load an image, remove it, check if OnSelectionChanged(NULL) is emitted).