diff --git a/Libs/DICOM/Core/ctkDICOMDatabase.cpp b/Libs/DICOM/Core/ctkDICOMDatabase.cpp index 4b65d9fa9c..a19426780b 100644 --- a/Libs/DICOM/Core/ctkDICOMDatabase.cpp +++ b/Libs/DICOM/Core/ctkDICOMDatabase.cpp @@ -1678,9 +1678,9 @@ bool ctkDICOMDatabase::initializeDatabase(const char* sqlFileName/* = ":/dicom/d // old schema should be loaded for testing. QSqlQuery dropSchemaInfo(d->Database); d->loggedExec( dropSchemaInfo, QString("DROP TABLE IF EXISTS 'SchemaInfo';") ); - return d->executeScript(sqlFileName); - + const bool r = d->executeScript(sqlFileName); emit databaseChanged(); + return r; } //------------------------------------------------------------------------------