mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed last merge (it went wrong)
This commit is contained in:
parent
ef49d93348
commit
f5682b0868
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user