mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 04:54:29 -04:00
Create unique database connections per thread and remove them using the database connection name from the QSqlDatabase instance being used.
This commit is contained in:
@ -198,7 +198,7 @@ void LibraryCreator::run()
|
||||
|
||||
_database.commit();
|
||||
_database.close();
|
||||
QSqlDatabase::removeDatabase(_target);
|
||||
QSqlDatabase::removeDatabase(_database.databaseName());
|
||||
//si estabamos en modo creación, se está añadiendo una librería que ya existía y se ha actualizado antes de añadirse.
|
||||
if(!partialUpdate)
|
||||
{
|
||||
|
Reference in New Issue
Block a user