瀏覽代碼

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();
+    }
 }