|
@@ -182,7 +182,6 @@ void ctkDICOMDatabasePrivate::init(QString databaseFilename)
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
void ctkDICOMDatabasePrivate::registerCompressionLibraries(){
|
|
|
- logger.debug("Register compression libraries");
|
|
|
// Register the JPEG libraries in case we need them
|
|
|
// (registration only happens once, so it's okay to call repeatedly)
|
|
|
// register global JPEG decompression codecs
|
|
@@ -1212,14 +1211,14 @@ void ctkDICOMDatabasePrivate::insert( const ctkDICOMItem& ctkDataset, const QStr
|
|
|
|
|
|
// this is the method that all other insert signatures end up calling
|
|
|
// after they have pre-parsed their arguments
|
|
|
-
|
|
|
+
|
|
|
// Check to see if the file has already been loaded
|
|
|
// TODO:
|
|
|
// It could make sense to actually remove the dataset and re-add it. This needs the remove
|
|
|
// method we still have to write.
|
|
|
//
|
|
|
//
|
|
|
-
|
|
|
+
|
|
|
QString sopInstanceUID ( ctkDataset.GetElementAsString(DCM_SOPInstanceUID) );
|
|
|
|
|
|
QSqlQuery fileExistsQuery ( Database );
|