mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Use older api currentSecsSinceEpoch was introduced in Qt 5.8
This commit is contained in:
parent
1c4eb4d1c6
commit
9cc4f65fc8
@ -1682,7 +1682,7 @@ void MainWindowViewer::decreasePageZoomLevel()
|
|||||||
void MainWindowViewer::sendComic()
|
void MainWindowViewer::sendComic()
|
||||||
{
|
{
|
||||||
YACReaderLocalClient * client = new YACReaderLocalClient;
|
YACReaderLocalClient * client = new YACReaderLocalClient;
|
||||||
currentComicDB.info.lastTimeOpened = QDateTime::currentSecsSinceEpoch();
|
currentComicDB.info.lastTimeOpened = QDateTime::currentMSecsSinceEpoch() / 1000;
|
||||||
viewer->updateComic(currentComicDB);
|
viewer->updateComic(currentComicDB);
|
||||||
|
|
||||||
if (currentComicDB.info.currentPage == currentComicDB.info.numPages) {
|
if (currentComicDB.info.currentPage == currentComicDB.info.numPages) {
|
||||||
|
@ -736,7 +736,7 @@ void DBHelper::updateReadingRemoteProgress(const ComicInfo &comicInfo, QSqlDatab
|
|||||||
updateComicInfo.bindValue(":read", comicInfo.read?1:0);
|
updateComicInfo.bindValue(":read", comicInfo.read?1:0);
|
||||||
updateComicInfo.bindValue(":currentPage", comicInfo.currentPage);
|
updateComicInfo.bindValue(":currentPage", comicInfo.currentPage);
|
||||||
updateComicInfo.bindValue(":hasBeenOpened", comicInfo.hasBeenOpened?1:0);
|
updateComicInfo.bindValue(":hasBeenOpened", comicInfo.hasBeenOpened?1:0);
|
||||||
updateComicInfo.bindValue(":lastTimeOpened", QDateTime::currentSecsSinceEpoch());
|
updateComicInfo.bindValue(":lastTimeOpened", QDateTime::currentMSecsSinceEpoch() / 1000);
|
||||||
updateComicInfo.bindValue(":id", comicInfo.id);
|
updateComicInfo.bindValue(":id", comicInfo.id);
|
||||||
updateComicInfo.bindValue(":rating", comicInfo.rating);
|
updateComicInfo.bindValue(":rating", comicInfo.rating);
|
||||||
updateComicInfo.exec();
|
updateComicInfo.exec();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user