clear debug output
This commit is contained in:
parent
be0c9ad4f5
commit
d38d986aef
|
@ -302,7 +302,6 @@ QList<PBookmark> BookmarkModel::load(const QString& filename, qint64 criteriaTim
|
||||||
QJsonValue value = array[i];
|
QJsonValue value = array[i];
|
||||||
QJsonObject obj=value.toObject();
|
QJsonObject obj=value.toObject();
|
||||||
qint64 bookmarkTimestamp = obj["timestamp"].toString().toULongLong(&ok);
|
qint64 bookmarkTimestamp = obj["timestamp"].toString().toULongLong(&ok);
|
||||||
qDebug()<<bookmarkTimestamp<<"??"<<criteriaTimestamp;
|
|
||||||
if (ok && bookmarkTimestamp>criteriaTimestamp) {
|
if (ok && bookmarkTimestamp>criteriaTimestamp) {
|
||||||
PBookmark bookmark = std::make_shared<Bookmark>();
|
PBookmark bookmark = std::make_shared<Bookmark>();
|
||||||
bookmark->filename = obj["filename"].toString();
|
bookmark->filename = obj["filename"].toString();
|
||||||
|
@ -332,9 +331,7 @@ void BookmarkModel::loadProjectBookmarks(const QString &filename, const QString&
|
||||||
mLastLoadProjectBookmarksTimestamp = QDateTime::currentMSecsSinceEpoch();
|
mLastLoadProjectBookmarksTimestamp = QDateTime::currentMSecsSinceEpoch();
|
||||||
mProjectBookmarks = load(filename,0,&t);
|
mProjectBookmarks = load(filename,0,&t);
|
||||||
QDir folder(projectFolder);
|
QDir folder(projectFolder);
|
||||||
qDebug()<<"load books"<<filename;
|
|
||||||
foreach (PBookmark bookmark, mProjectBookmarks) {
|
foreach (PBookmark bookmark, mProjectBookmarks) {
|
||||||
qDebug()<<bookmark->filename;
|
|
||||||
bookmark->filename=folder.absoluteFilePath(bookmark->filename);
|
bookmark->filename=folder.absoluteFilePath(bookmark->filename);
|
||||||
}
|
}
|
||||||
if (mIsForProject)
|
if (mIsForProject)
|
||||||
|
|
Loading…
Reference in New Issue