Changeset View
Changeset View
Standalone View
Standalone View
src/core/kcoredirlister.cpp
Show First 20 Lines • Show All 638 Lines • ▼ Show 20 Line(s) | |||||
639 | } | 639 | } | ||
640 | 640 | | |||
641 | void KCoreDirListerCache::updateDirectory(const QUrl &_dir) | 641 | void KCoreDirListerCache::updateDirectory(const QUrl &_dir) | ||
642 | { | 642 | { | ||
643 | qCDebug(KIO_CORE_DIRLISTER) << _dir; | 643 | qCDebug(KIO_CORE_DIRLISTER) << _dir; | ||
644 | 644 | | |||
645 | const QUrl dir = _dir.adjusted(QUrl::StripTrailingSlash); | 645 | const QUrl dir = _dir.adjusted(QUrl::StripTrailingSlash); | ||
646 | if (!checkUpdate(dir)) { | 646 | if (!checkUpdate(dir)) { | ||
647 | if (dir.isLocalFile() && !(findByUrl(nullptr, dir).isNull())) { | | |||
648 | pendingUpdates.insert(dir.toLocalFile()); | | |||
649 | if (!pendingUpdateTimer.isActive()) { | | |||
650 | pendingUpdateTimer.start(500); | | |||
651 | } | | |||
652 | } | | |||
653 | return; | 647 | return; | ||
654 | } | 648 | } | ||
655 | 649 | | |||
656 | // A job can be running to | 650 | // A job can be running to | ||
657 | // - only list a new directory: the listers are in listersCurrentlyListing | 651 | // - only list a new directory: the listers are in listersCurrentlyListing | ||
658 | // - only update a directory: the listers are in listersCurrentlyHolding | 652 | // - only update a directory: the listers are in listersCurrentlyHolding | ||
659 | // - update a currently running listing: the listers are in both | 653 | // - update a currently running listing: the listers are in both | ||
660 | 654 | | |||
▲ Show 20 Lines • Show All 2150 Lines • Show Last 20 Lines |