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 3b32c2fa89)
pull/271/head
Alexander Golubev 9 months ago committed by Michele Calgaro
parent 25f8669542
commit d658f64554
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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) {

Loading…
Cancel
Save