Locked History Attachments

ChangeRequests/2472

Summary of problem description

The progress bar starts blinking grey instead of increasing while loading DICOM image series.

actual behaviour

The status of the progress bar doesn´t match the actual progress.

expected behaviour

The progress bar should increase and show the correct progress

Cause of the bug

When updating the progress bar, the callback function OnITKProgressEvent passes the actual progress of the process object to the progress bar, where it is added to the last progress steps. Because of that, the progress bar increases too fast and the number of total steps are reached too early. This causes a reset of the progress bar.

Proposed solution

Pass just the steps the progress increased since the last update to the progress bar. For storing the last progress value, the class variable m_OldProgress is introduced. To prevent the progress bar from flickering, the check m_Progress <= m_TotalSteps is done before showing the widget.

Affected classes

mitkDataNodeFactory.cpp /.h QmitkProgressBar.cpp

How will the bugfix get tested?

manual test. loaded several dicom files and the progressbar behaved as expected.