mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
Fix the problem that filelight always scan across filesystem boundary
patch from https://git.reviewboard.kde.org/r/120707/
This commit is contained in:
parent
d0038e32d7
commit
a73fad9327
1 changed files with 7 additions and 4 deletions
|
@ -240,13 +240,16 @@ void LocalLister::readMounts()
|
|||
partition = device.as<Solid::StorageAccess>();
|
||||
if (!partition->isAccessible() || partition->filePath() == QLatin1String( "/" ) || partition->filePath().isEmpty()) continue;
|
||||
|
||||
QString filePath = partition->filePath();
|
||||
if (!filePath.endsWith(QLatin1String("/")))
|
||||
filePath.append(QLatin1String("/"));
|
||||
volume = device.as<Solid::StorageVolume>();
|
||||
if (remoteFsTypes.contains(volume->fsType())) {
|
||||
if (!s_remoteMounts.contains(partition->filePath())) {
|
||||
s_remoteMounts.append(partition->filePath());
|
||||
if (!s_remoteMounts.contains(filePath)) {
|
||||
s_remoteMounts.append(filePath);
|
||||
}
|
||||
} else if (!s_localMounts.contains(partition->filePath())) {
|
||||
s_localMounts.append(partition->filePath());
|
||||
} else if (!s_localMounts.contains(filePath)) {
|
||||
s_localMounts.append(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue