Commit aa259e38 authored by Méven Car's avatar Méven Car
Browse files

Kicker/RecentDocuments Avoid referring to hidden places

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26385
parent 90996525
......@@ -260,7 +260,7 @@ QVariant RecentUsageModel::docData(const QString &resource, int role) const
if (role == Qt::DisplayRole) {
const auto index = m_placesModel->closestItem(fileItem.url());
if (index.isValid()) {
if (index.isValid() && !m_placesModel->isHidden(index)) {
const auto parentUrl = m_placesModel->url(index);
if (parentUrl == fileItem.url()) {
return m_placesModel->text(index);
......
Markdown is supported
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