kio: temporary fix for recursive listing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-06-04 04:46:51 +03:00
parent 089c0ac111
commit 942e50f279

View file

@ -1758,16 +1758,16 @@ void ListJobPrivate::slotListEntries(const KIO::UDSEntryList &list)
slotProcessedSize(m_processedEntries);
if (recursive) {
UDSEntryList::ConstIterator it = list.begin();
const UDSEntryList::ConstIterator end = list.end();
for (; it != end; ++it) {
const UDSEntry &entry = *it;
foreach (const UDSEntry &entry, list) {
KUrl itemURL;
#if 0
// FIXME: lists the directory twice if used
if (entry.contains(KIO::UDSEntry::UDS_URL)) {
itemURL = entry.stringValue(KIO::UDSEntry::UDS_URL);
} else {
#endif
{
// no URL, use the name
itemURL = q->url();
const QString fileName = entry.stringValue(KIO::UDSEntry::UDS_NAME);