Commit 3d5719e7 authored by Méven Car's avatar Méven Car Committed by Méven Car
Browse files

KCM/baloo Display full mount point in list of excluded mount points

Summary: CCBUG: 379516

Test Plan: {F7865140}

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26478
parent 65a340f2
...@@ -191,7 +191,7 @@ QString FilteredFolderModel::folderDisplayName(const QString& url) const ...@@ -191,7 +191,7 @@ QString FilteredFolderModel::folderDisplayName(const QString& url) const
// Check Mount allMountPointsExcluded // Check Mount allMountPointsExcluded
for (QString mountPoint : m_mountPoints) { for (QString mountPoint : m_mountPoints) {
if (url.startsWith(mountPoint)) { if (url.startsWith(mountPoint)) {
name = QLatin1Char('[') + QDir(mountPoint).dirName() + QLatin1String("]/") + url.mid(mountPoint.length()); name = QLatin1Char('[') + mountPoint+ QLatin1String("]/") + url.mid(mountPoint.length());
break; break;
} }
} }
......
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