mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use an invalid QVariant to set to NULL a value in the DB
nullptr causes troubles in some platforms/compiles
This commit is contained in:
parent
f11a757141
commit
b64ea19e8b
@ -798,7 +798,7 @@ QVector<YACReaderComicReadStatus> ComicModel::setComicsRead(QList<QModelIndex> 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user