Use older api currentSecsSinceEpoch was introduced in Qt 5.8

This commit is contained in:
Luis Ángel San Martín
2018-05-28 21:18:11 +02:00
parent 1c4eb4d1c6
commit 9cc4f65fc8
2 changed files with 2 additions and 2 deletions

View File

@ -1682,7 +1682,7 @@ void MainWindowViewer::decreasePageZoomLevel()
void MainWindowViewer::sendComic()
{
YACReaderLocalClient * client = new YACReaderLocalClient;
currentComicDB.info.lastTimeOpened = QDateTime::currentSecsSinceEpoch();
currentComicDB.info.lastTimeOpened = QDateTime::currentMSecsSinceEpoch() / 1000;
viewer->updateComic(currentComicDB);
if (currentComicDB.info.currentPage == currentComicDB.info.numPages) {