Skip to content

Commit

Permalink
fix(drecentmanager): url encoded.
Browse files Browse the repository at this point in the history
Change-Id: I2826384675c509fb5159608e764269f84b51cd09
  • Loading branch information
reionwong committed Nov 16, 2018
1 parent dfeb326 commit e234a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/drecentmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void DRecentManager::removeItems(const QStringList &list)
for (int i = 0; i < nodeList.count(); ) {
const QString fileUrl = nodeList.at(i).toElement().attribute("href");

if (list.contains(fileUrl)) {
if (list.contains(QUrl::fromPercentEncoding(fileUrl.toUtf8()))) {
rootEle.removeChild(nodeList.at(i));
} else {
++i;
Expand Down

0 comments on commit e234a8c

Please sign in to comment.