瀏覽代碼

Update table views when deleting patient

When removing patient/study/series from right
click, the table views in DICOM browser was not
updated.
Jerome 9 年之前
父節點
當前提交
fb910a1a27
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Libs/DICOM/Widgets/ctkDICOMBrowser.cpp

+ 3 - 0
Libs/DICOM/Widgets/ctkDICOMBrowser.cpp

@@ -777,6 +777,7 @@ void ctkDICOMBrowser::onPatientsRightClicked(const QPoint &point)
     foreach (const QString& uid, selectedPatientsUIDs)
       {
       d->DICOMDatabase->removePatient(uid);
+      d->dicomTableManager->updateTableViews();
       }
     }
   else if (selectedAction == exportAction)
@@ -836,6 +837,7 @@ void ctkDICOMBrowser::onStudiesRightClicked(const QPoint &point)
     foreach (const QString& uid, selectedStudiesUIDs)
       {
       d->DICOMDatabase->removeStudy(uid);
+      d->dicomTableManager->updateTableViews();
       }
     }
   else if (selectedAction == exportAction)
@@ -894,6 +896,7 @@ void ctkDICOMBrowser::onSeriesRightClicked(const QPoint &point)
     foreach (const QString& uid, selectedSeriesUIDs)
       {
       d->DICOMDatabase->removeSeries(uid);
+      d->dicomTableManager->updateTableViews();
       }
     }
   else if (selectedAction == exportAction)