ソースを参照

Ensure tag cache is initialized with rest of database

Steve Pieper 12 年 前
コミット
933cccada7
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5 0
      Libs/DICOM/Core/ctkDICOMDatabase.cpp

+ 5 - 0
Libs/DICOM/Core/ctkDICOMDatabase.cpp

@@ -283,6 +283,11 @@ void ctkDICOMDatabase::openDatabase(const QString databaseFile, const QString& c
   QFileInfo fileInfo(d->DatabaseFileName);
   d->TagCacheDatabaseFilename = QString( fileInfo.dir().path() + "/ctkDICOMTagCache.sql" );
   d->TagCacheVerified = false;
+
+  if ( !this->tagCacheExists() )
+    {
+    this->initializeTagCache();
+    }
 }