mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: temporary fix for recursive listing
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
089c0ac111
commit
942e50f279
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue