Commit 0acbfba3 authored by Stefan Brüns's avatar Stefan Brüns

Remove redundant match for mountpoints

Summary:
m_excludeList is populated from m_settings->excludeFolders(), so one of
the checks is redundant.

Remove the first and not the second one, as the first does not use
normalized pathes and may miss some matches.

Reviewers: #baloo, ngraham, davidedmundson

Reviewed By: #baloo, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D27636
parent 3d2dfabe
......@@ -108,9 +108,6 @@ void FilteredFolderModel::updateDirectoryList()
if (includeList.contains(mountPath))
continue;
if (m_settings->excludedFolders().contains(mountPath))
continue;
if (!m_excludeList.contains(mountPath)) {
m_excludeList.append(mountPath);
}
......
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