From 942e50f279c628a3b18e911e9348c4b47bb4e575 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 4 Jun 2024 04:46:51 +0300 Subject: [PATCH] kio: temporary fix for recursive listing Signed-off-by: Ivailo Monev --- kio/kio/job.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kio/kio/job.cpp b/kio/kio/job.cpp index e48e64ab..fcfa1fb0 100644 --- a/kio/kio/job.cpp +++ b/kio/kio/job.cpp @@ -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);