Commit ff3935b3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Test if we need to clear database

parent e7d0883e
......@@ -174,8 +174,13 @@ void LocalDataBaseManager::slotDownloadDataBaseFinished(const WebEngineViewer::U
(mNewClientState == infoDataBase.newClientState)) {
qDebug() << "No update necessary ";
} else {
//Clear database ?
//qDebug() << "infoDataBase" << infoDataBase.additionList.count();
if (infoDataBase.responseType == WebEngineViewer::UpdateDataBaseInfo::FullUpdate) {
//TODO Clear database ?
} else if (infoDataBase.responseType == WebEngineViewer::UpdateDataBaseInfo::Unknown) {
// ?????
return;
}
Q_FOREACH(const Addition &add, infoDataBase.additionList) {
//qDebug() << " add.size" << add.prefixSize;
//qDebug() << " add.hash" << QByteArray::fromBase64(add.hashString).size();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment