diff --git a/YACReaderLibrary/db_helper.cpp b/YACReaderLibrary/db_helper.cpp index 074f2194..124cb67b 100644 --- a/YACReaderLibrary/db_helper.cpp +++ b/YACReaderLibrary/db_helper.cpp @@ -842,8 +842,6 @@ void DBHelper::updateFromRemoteClient(const QMap> & updateComicInfo.bindValue(":id", comic.info.id); updateComicInfo.bindValue(":rating", comic.info.rating); updateComicInfo.exec(); - - updateComicInfo.clear(); } } @@ -906,9 +904,10 @@ void DBHelper::updateFromRemoteClientWithHash(const QList &comics) updateComicInfo.bindValue(":id", info.id); updateComicInfo.bindValue(":rating", info.rating); updateComicInfo.exec(); - ; } + db.commit(); + db.close(); QSqlDatabase::removeDatabase(db.connectionName()); }