From 3b32c2fa89463064b91553a13f1a30a45c5841f7 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Fri, 16 Feb 2024 01:20:37 +0300 Subject: [PATCH] tdeio/kdirlister: better handle if TDEIO::localURL() failed This shouldn't generally happend, but better safe than sorry. Signed-off-by: Alexander Golubev --- tdeio/tdeio/kdirlister.cpp | 7 +++---- 1 file 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) {