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>
pull/259/head
Alexander Golubev 9 months ago committed by TDE Gitea
parent 3b1b97d7fe
commit 3b32c2fa89

@ -1960,12 +1960,11 @@ bool KDirLister::openURL( const KURL& _url, bool _keep, bool _reload )
this, TQ_SLOT(slotOpenURLGotLocalURL(TDEIO::LocalURLJob*, const KURL&, bool))); this, TQ_SLOT(slotOpenURLGotLocalURL(TDEIO::LocalURLJob*, const KURL&, bool)));
connect(localURLJob, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotLocalURLKIODestroyed())); connect(localURLJob, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotLocalURLKIODestroyed()));
d->complete = false; 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) { void KDirLister::slotOpenURLGotLocalURL(TDEIO::LocalURLJob *job, const KURL& url, bool isLocal) {

Loading…
Cancel
Save