Browse Source

Ensure tag cache is initialized with rest of database

Steve Pieper 12 years ago
parent
commit
933cccada7
1 changed files with 5 additions and 0 deletions
  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();
+    }
 }