mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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.read = false;
|
||||||
c.info.currentPage = 1;
|
c.info.currentPage = 1;
|
||||||
c.info.hasBeenOpened = false;
|
c.info.hasBeenOpened = false;
|
||||||
c.info.lastTimeOpened.setValue(nullptr);
|
c.info.lastTimeOpened.setValue(QVariant());
|
||||||
DBHelper::update(&(c.info), db);
|
DBHelper::update(&(c.info), db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user