diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-02-16 01:20:37 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-16 18:35:40 +0900 |
commit | d658f64554c9af1e86833160f69c4997db456a01 (patch) | |
tree | 928c9bd5509633495d0d17dbfe3dcbcbf96aa55a /tdeio | |
parent | 25f86695424006708b7fe348230b0fbfe7a3adeb (diff) | |
download | tdelibs-d658f64554c9af1e86833160f69c4997db456a01.tar.gz tdelibs-d658f64554c9af1e86833160f69c4997db456a01.zip |
tdeio/kdirlister: better handle if TDEIO::localURL() failed
This shouldn't generally happend, but better safe than sorry.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 3b32c2fa89463064b91553a13f1a30a45c5841f7)
Diffstat (limited to 'tdeio')
-rw-r--r-- | tdeio/tdeio/kdirlister.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tdeio/tdeio/kdirlister.cpp b/tdeio/tdeio/kdirlister.cpp index b27580a4b..e5045db5b 100644 --- a/tdeio/tdeio/kdirlister.cpp +++ b/tdeio/tdeio/kdirlister.cpp @@ -1960,12 +1960,11 @@ bool KDirLister::openURL( const KURL& _url, bool _keep, bool _reload ) this, TQ_SLOT(slotOpenURLGotLocalURL(TDEIO::LocalURLJob*, const KURL&, bool))); connect(localURLJob, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotLocalURLKIODestroyed())); d->complete = false; + return true; } - return true; - } - else { - return s_pCache->listDir( this, _url, _keep, _reload ); } + + return s_pCache->listDir( this, _url, _keep, _reload ); } void KDirLister::slotOpenURLGotLocalURL(TDEIO::LocalURLJob *job, const KURL& url, bool isLocal) { |