浏览代码

BUG: stop after unable to create dir.

An interim test of continuing on to the next series after
being unable to create the export directory had been left in,
this commit halts the export after the first.
Added a suggestion to repair the database if a source file
is not found.

Slicer Issue #3163
Nicole Aucoin 9 年之前
父节点
当前提交
86837e6a68
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Libs/DICOM/Widgets/ctkDICOMBrowser.cpp

+ 4 - 4
Libs/DICOM/Widgets/ctkDICOMBrowser.cpp

@@ -967,13 +967,13 @@ void ctkDICOMBrowser::exportSelectedSeries(QString dirPath, QStringList uids)
         {
         QString errorString =
           QString("Unable to create export destination directory:\n\n")
-          + destinationDir;
+          + destinationDir
+          + QString("\n\nHalting export.");
         ctkMessageBox createDirectoryErrorMessageBox;
         createDirectoryErrorMessageBox.setText(errorString);
         createDirectoryErrorMessageBox.setIcon(QMessageBox::Warning);
         createDirectoryErrorMessageBox.exec();
-        // go on the the next series if present
-        continue;
+        return;
         }
       }
 
@@ -1012,7 +1012,7 @@ void ctkDICOMBrowser::exportSelectedSeries(QString dirPath, QStringList uids)
         d->ExportProgress->setValue(numFiles);
         QString errorString = QString("Export source file not found:\n\n")
           + filePath
-          + QString("\n\nHalting export.");
+          + QString("\n\nHalting export.\n\nError may be fixed via Repair.");
         ctkMessageBox copyErrorMessageBox;
         copyErrorMessageBox.setText(errorString);
         copyErrorMessageBox.setIcon(QMessageBox::Warning);