Changeset View
Changeset View
Standalone View
Standalone View
krusader/VFS/default_vfs.cpp
Context not available. | |||||
189 | // start the listing job | 189 | // start the listing job | ||
---|---|---|---|---|---|
190 | KIO::ListJob *job = KIO::listDir(_currentDirectory, KIO::HideProgressInfo, showHidden); | 190 | KIO::ListJob *job = KIO::listDir(_currentDirectory, KIO::HideProgressInfo, showHidden); | ||
191 | connect(job, SIGNAL(entries(KIO::Job *, const KIO::UDSEntryList &)), this, | 191 | connect(job, SIGNAL(entries(KIO::Job *, const KIO::UDSEntryList &)), this, | ||
192 | SLOT(slotAddFiles(KIO::Job *, const KIO::UDSEntryList &))); | 192 | SLOT(slotAddPendingFiles(KIO::Job *, const KIO::UDSEntryList &))); | ||
193 | connect(job, &KIO::ListJob::redirection, this, &default_vfs::slotRedirection); | 193 | connect(job, &KIO::ListJob::redirection, this, &default_vfs::slotRedirection); | ||
194 | connect(job, &KIO::ListJob::permanentRedirection, this, &default_vfs::slotRedirection); | 194 | connect(job, &KIO::ListJob::permanentRedirection, this, &default_vfs::slotRedirection); | ||
195 | connect(job, SIGNAL(result(KJob*)), this, SLOT(slotListResult(KJob*))); | 195 | connect(job, SIGNAL(result(KJob*)), this, SLOT(slotListResult(KJob*))); | ||
Context not available. | |||||
221 | } | 221 | } | ||
222 | } | 222 | } | ||
223 | 223 | | |||
224 | void default_vfs::slotAddFiles(KIO::Job *, const KIO::UDSEntryList& entries) | 224 | void default_vfs::slotAddPendingFiles(KIO::Job *, const KIO::UDSEntryList& entries) | ||
225 | { | 225 | { | ||
226 | for (const KIO::UDSEntry entry : entries) { | 226 | for (const KIO::UDSEntry entry : entries) { | ||
227 | vfile *vfile = vfs::createVFileFromKIO(entry, _currentDirectory); | 227 | vfile *vfile = vfs::createVFileFromKIO(entry, _currentDirectory); | ||
228 | if (vfile) { | 228 | if (vfile) { | ||
229 | addVfile(vfile); | 229 | addPendingVfile(vfile); | ||
230 | } | 230 | } | ||
231 | } | 231 | } | ||
232 | } | 232 | } | ||
Context not available. | |||||
337 | if (name == "." || name == "..") continue; | 337 | if (name == "." || name == "..") continue; | ||
338 | 338 | | |||
339 | vfile* temp = createLocalVFile(name); | 339 | vfile* temp = createLocalVFile(name); | ||
340 | addVfile(temp); | 340 | addPendingVfile(temp); | ||
341 | } | 341 | } | ||
342 | // clean up | 342 | // clean up | ||
343 | QT_CLOSEDIR(dir); | 343 | QT_CLOSEDIR(dir); | ||
Context not available. |