From b64ea19e8b680462303fdea22641afb71f3c3be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 25 Aug 2020 19:45:05 +0200 Subject: [PATCH] Use an invalid QVariant to set to NULL a value in the DB nullptr causes troubles in some platforms/compiles --- YACReaderLibrary/db/comic_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/db/comic_model.cpp b/YACReaderLibrary/db/comic_model.cpp index a50cc7b1..7fee8000 100644 --- a/YACReaderLibrary/db/comic_model.cpp +++ b/YACReaderLibrary/db/comic_model.cpp @@ -798,7 +798,7 @@ QVector ComicModel::setComicsRead(QList l c.info.read = false; c.info.currentPage = 1; c.info.hasBeenOpened = false; - c.info.lastTimeOpened.setValue(nullptr); + c.info.lastTimeOpened.setValue(QVariant()); DBHelper::update(&(c.info), db); } }