Commit 87f30cbd authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Fix the problem that filelight always scan across filesystem boundary

The solid's filePath doesn't contain a trailing '/'.  This will cause
the comparision

if (new_path == (*it)->name8Bit())

to be false so that filelight always scans across filesystem boundary.

Patch by Yichao Zhou.

REVIEW: 120707
parent 8f13567a
......@@ -241,13 +241,16 @@ void LocalLister::readMounts()
partition =<Solid::StorageAccess>();
if (!partition->isAccessible() || partition->filePath() == QLatin1String( "/" ) || partition->filePath().isEmpty()) continue;
QString filePath = partition->filePath();
if (!filePath.endsWith(QLatin1String("/")))
volume =<Solid::StorageVolume>();
if (remoteFsTypes.contains(volume->fsType())) {
if (!s_remoteMounts.contains(partition->filePath())) {
if (!s_remoteMounts.contains(filePath)) {
} else if (!s_localMounts.contains(partition->filePath())) {
} else if (!s_localMounts.contains(filePath)) {
Supports Markdown
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