Skip to content

Commit

Permalink
fix(drecentmanager): uniform url format.
Browse files Browse the repository at this point in the history
Change-Id: If61c023af00d55c72713697dfd8e6a229cf23169
  • Loading branch information
reionwong committed Nov 16, 2018
1 parent fb25646 commit 413a898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/drecentmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <QFile>
#include <QDir>
#include <QUrl>
#include <QDebug>

DCORE_BEGIN_NAMESPACE

Expand Down Expand Up @@ -141,9 +140,10 @@ bool DRecentManager::addItem(const QString &uri, DRecentData &data)
// add new elements if they don't exist.
else {
QDomElement bookmarkEle, infoEle, metadataEle, mimeEle, appsEle, appChildEle;
QString hrefStr = QString::fromLatin1(url.toEncoded(QUrl::FullyEncoded));

bookmarkEle = doc.createElement("bookmark");
bookmarkEle.setAttribute("href", url.toString());
bookmarkEle.setAttribute("href", hrefStr);
bookmarkEle.setAttribute("added", dateTime);
bookmarkEle.setAttribute("modified", dateTime);
bookmarkEle.setAttribute("visited", dateTime);
Expand Down

0 comments on commit 413a898

Please sign in to comment.