Fix a thumbnail error(about current thumbnail), after reload data.
This commit is contained in:
@@ -110,7 +110,8 @@ void ThumbnailBarWidget::updateThumbnailBar()
|
||||
LabelList.removeOne(l);
|
||||
delete l;
|
||||
}
|
||||
|
||||
clear();
|
||||
bool firstThumbnail = true;
|
||||
DicomLoader *helper = DicomLoader::GetInstance();
|
||||
//获取Patient
|
||||
const PatientsMapType & all_patients = helper->getPatientsList();
|
||||
@@ -144,7 +145,12 @@ void ThumbnailBarWidget::updateThumbnailBar()
|
||||
SeriesMapType *series = it_st->second->series;
|
||||
for (SeriesMapType::const_iterator it_se = series->cbegin(); it_se != series->cend(); it_se++) {
|
||||
thumbnailImage *thumbnail = createThumbnailImage(seriesPanel, it_se->second);
|
||||
|
||||
seriesPanel->layout()->addWidget(thumbnail);
|
||||
if (firstThumbnail){
|
||||
setCurrentImageLabel(thumbnail);
|
||||
firstThumbnail = false;
|
||||
}
|
||||
//save all thumbnail in one list
|
||||
LabelList << thumbnail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user