fixed last merge (it went wrong)

This commit is contained in:
Luis Ángel San Martín 2014-08-12 16:37:43 +02:00
parent ef49d93348
commit f5682b0868

View File

@ -314,20 +314,6 @@ void DBHelper::updateProgress(qulonglong libraryId, const ComicInfo &comicInfo)
QSqlDatabase::removeDatabase(libraryPath); QSqlDatabase::removeDatabase(libraryPath);
} }
void DBHelper::updateProgress(qulonglong libraryId, const ComicInfo &comicInfo)
{
QString libraryPath = DBHelper::getLibraries().getPath(libraryId);
QSqlDatabase db = DataBaseManagement::loadDatabase(libraryPath+"/.yacreaderlibrary");
ComicDB comic = DBHelper::loadComic(comicInfo.id,db);
comic.info.currentPage = comicInfo.currentPage;
comic.info.hasBeenOpened = true;
DBHelper::update(&comic.info,db);
db.close();
QSqlDatabase::removeDatabase(libraryPath);
}
//inserts //inserts
qulonglong DBHelper::insert(Folder * folder, QSqlDatabase & db) qulonglong DBHelper::insert(Folder * folder, QSqlDatabase & db)
{ {