Changeset View
Changeset View
Standalone View
Standalone View
src/core/copyjob.cpp
Show First 20 Lines • Show All 658 Lines • ▼ Show 20 Line(s) | 655 | { | |||
---|---|---|---|---|---|
659 | for (; it != end; ++it) { | 659 | for (; it != end; ++it) { | ||
660 | const UDSEntry &entry = *it; | 660 | const UDSEntry &entry = *it; | ||
661 | addCopyInfoFromUDSEntry(entry, static_cast<SimpleJob *>(job)->url(), m_bCurrentSrcIsDir, m_currentDest); | 661 | addCopyInfoFromUDSEntry(entry, static_cast<SimpleJob *>(job)->url(), m_bCurrentSrcIsDir, m_currentDest); | ||
662 | } | 662 | } | ||
663 | } | 663 | } | ||
664 | 664 | | |||
665 | void CopyJobPrivate::slotSubError(ListJob *job, ListJob *subJob) | 665 | void CopyJobPrivate::slotSubError(ListJob *job, ListJob *subJob) | ||
666 | { | 666 | { | ||
667 | const QUrl url = subJob->url(); | 667 | const QUrl &url = subJob->url(); | ||
668 | qCWarning(KIO_CORE) << url << subJob->errorString(); | 668 | qCWarning(KIO_CORE) << url << subJob->errorString(); | ||
669 | 669 | | |||
670 | Q_Q(CopyJob); | 670 | Q_Q(CopyJob); | ||
671 | 671 | | |||
672 | emit q->warning(job, subJob->errorString(), QString()); | 672 | emit q->warning(job, subJob->errorString(), QString()); | ||
673 | skip(url, true); | 673 | skip(url, true); | ||
674 | } | 674 | } | ||
675 | 675 | | |||
▲ Show 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | |||||
986 | 986 | | |||
987 | void CopyJobPrivate::startListing(const QUrl &src) | 987 | void CopyJobPrivate::startListing(const QUrl &src) | ||
988 | { | 988 | { | ||
989 | Q_Q(CopyJob); | 989 | Q_Q(CopyJob); | ||
990 | state = STATE_LISTING; | 990 | state = STATE_LISTING; | ||
991 | m_bURLDirty = true; | 991 | m_bURLDirty = true; | ||
992 | ListJob *newjob = listRecursive(src, KIO::HideProgressInfo); | 992 | ListJob *newjob = listRecursive(src, KIO::HideProgressInfo); | ||
993 | newjob->setUnrestricted(true); | 993 | newjob->setUnrestricted(true); | ||
994 | q->connect(newjob, &ListJob::entries, q, [this](KIO::Job *job, KIO::UDSEntryList list) { | 994 | q->connect(newjob, &ListJob::entries, q, [this](KIO::Job *job, const KIO::UDSEntryList &list) { | ||
995 | slotEntries(job, list); | 995 | slotEntries(job, list); | ||
996 | }); | 996 | }); | ||
997 | q->connect(newjob, &ListJob::subError, q, [this](KIO::ListJob *job, KIO::ListJob *subJob) { | 997 | q->connect(newjob, &ListJob::subError, q, [this](KIO::ListJob *job, KIO::ListJob *subJob) { | ||
998 | slotSubError(job, subJob); | 998 | slotSubError(job, subJob); | ||
999 | }); | 999 | }); | ||
1000 | q->addSubjob(newjob); | 1000 | q->addSubjob(newjob); | ||
1001 | } | 1001 | } | ||
1002 | 1002 | | |||
▲ Show 20 Lines • Show All 1329 Lines • Show Last 20 Lines |