Commit c192e429 authored by Lubos Dolezel's avatar Lubos Dolezel
Browse files

Large directories were not being added to data projects with all their contents

parent 2f361016
......@@ -526,7 +526,7 @@ void K3b::DataUrlAddingDialog::slotAddUrls()
KIO::ListJob *lj = KIO::listDir(QUrl::fromLocalFile(absoluteFilePath), KIO::HideProgressInfo);
KIO::UDSEntryList list;
connect(lj, &KIO::ListJob::entries, this, [&](KIO::Job *, const KIO::UDSEntryList &l) { list = l; });
connect(lj, &KIO::ListJob::entries, this, [&](KIO::Job *, const KIO::UDSEntryList &l) { list.append(l); });
foreach( const KIO::UDSEntry& entry, list ) {
const QString fileName = entry.stringValue( KIO::UDSEntry::UDS_NAME );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment