mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Automated merge with https://bitbucket.org/luisangelsm/yacreader
This commit is contained in:
commit
72b2abb8cd
@ -569,6 +569,7 @@ void TableModel::reload(const ComicDB & comic)
|
|||||||
if(item->data(TableModel::Id).toULongLong() == comic.id)
|
if(item->data(TableModel::Id).toULongLong() == comic.id)
|
||||||
{
|
{
|
||||||
found = true;
|
found = true;
|
||||||
|
item->setData(TableModel::ReadColumn,comic.info.read);
|
||||||
item->setData(TableModel::CurrentPage,comic.info.currentPage);
|
item->setData(TableModel::CurrentPage,comic.info.currentPage);
|
||||||
item->setData(TableModel::HasBeenOpened,true);
|
item->setData(TableModel::HasBeenOpened,true);
|
||||||
break;
|
break;
|
||||||
|
@ -252,7 +252,8 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db)
|
|||||||
updateComicInfo.bindValue(":characters",comicInfo->characters);
|
updateComicInfo.bindValue(":characters",comicInfo->characters);
|
||||||
updateComicInfo.bindValue(":notes",comicInfo->notes);
|
updateComicInfo.bindValue(":notes",comicInfo->notes);
|
||||||
|
|
||||||
updateComicInfo.bindValue(":read", comicInfo->read?1:0);
|
bool read = comicInfo->read || comicInfo->currentPage == comicInfo->numPages.toInt(); //if current page is the las page, the comic is read(completed)
|
||||||
|
updateComicInfo.bindValue(":read", read?1:0);
|
||||||
updateComicInfo.bindValue(":id", comicInfo->id);
|
updateComicInfo.bindValue(":id", comicInfo->id);
|
||||||
updateComicInfo.bindValue(":edited", comicInfo->edited?1:0);
|
updateComicInfo.bindValue(":edited", comicInfo->edited?1:0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user