summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-16 01:20:37 +0300
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2024-02-16 09:33:12 +0000
commit3b32c2fa89463064b91553a13f1a30a45c5841f7 (patch)
tree42e16c8c47f6e5af6b65be8855e1d9e00d37abcb
parent3b1b97d7fe7cf05ec4d05397f613300fd49b222d (diff)
downloadtdelibs-3b32c2fa89463064b91553a13f1a30a45c5841f7.tar.gz
tdelibs-3b32c2fa89463064b91553a13f1a30a45c5841f7.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>
-rw-r--r--tdeio/tdeio/kdirlister.cpp7
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) {