diff options
author | Alexander Golubev <[email protected]> | 2024-02-16 00:11:47 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-16 18:35:34 +0900 |
commit | 25f86695424006708b7fe348230b0fbfe7a3adeb (patch) | |
tree | b7d2bac62f074539de248d647fe26b2874750e55 /tdeio | |
parent | 63999d712676c3a044337a59050dc2dad3e2f6c8 (diff) | |
download | tdelibs-25f86695424006708b7fe348230b0fbfe7a3adeb.tar.gz tdelibs-25f86695424006708b7fe348230b0fbfe7a3adeb.zip |
tdeio/kdirlister: reset complete flag earlier for remote URLs
Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/gwenview/issues/20
Signed-off-by: Alexander Golubev <[email protected]>
(cherry picked from commit 3b1b97d7fe7cf05ec4d05397f613300fd49b222d)
Diffstat (limited to 'tdeio')
-rw-r--r-- | tdeio/tdeio/kdirlister.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tdeio/tdeio/kdirlister.cpp b/tdeio/tdeio/kdirlister.cpp index c3fa3d451..b27580a4b 100644 --- a/tdeio/tdeio/kdirlister.cpp +++ b/tdeio/tdeio/kdirlister.cpp @@ -1959,6 +1959,7 @@ bool KDirLister::openURL( const KURL& _url, bool _keep, bool _reload ) connect(localURLJob, TQ_SIGNAL(localURL(TDEIO::LocalURLJob*, const KURL&, bool)), this, TQ_SLOT(slotOpenURLGotLocalURL(TDEIO::LocalURLJob*, const KURL&, bool))); connect(localURLJob, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotLocalURLKIODestroyed())); + d->complete = false; } return true; } @@ -1980,6 +1981,7 @@ void KDirLister::slotOpenURLGotLocalURL(TDEIO::LocalURLJob *job, const KURL& url d->m_referenceURLMap[ctx.url.url()] = url.path(); } d->openURLContext.remove(jobIt); + d->complete = d->jobData.isEmpty() && d->openURLContext.isEmpty(); s_pCache->listDir( this, realURL, ctx.keep, ctx.reload ); } @@ -1990,6 +1992,7 @@ void KDirLister::slotLocalURLKIODestroyed() { if (jobIt != d->openURLContext.end()) { auto ctx = jobIt.data(); d->openURLContext.remove(jobIt); + d->complete = d->jobData.isEmpty() && d->openURLContext.isEmpty(); s_pCache->listDir( this, ctx.url, ctx.keep, ctx.reload ); } } |