gwenview: do not list non-readable directories from RecrusiveDirModel

directores such as "lost+found" may not be readable, if the main directory
is not readable an error will be shown still (as it should be).

requires 268eac6790195fe72afeb8525f930e289276eaf9 from kdelibs

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-04 16:09:21 +03:00
parent 16d3998931
commit de8207696d

View file

@ -175,7 +175,7 @@ void RecursiveDirModel::slotItemsAdded(const KFileItemList& newList)
if (d->rowForUrl(item.url()) == -1) {
fileList << item;
}
} else {
} else if (item.isReadable()) {
dirUrls << item.url();
}
}