mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kio: do not attempt to register finished stat() jobs from KIO::NetAccess
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2c3a94a77d
commit
6520dc777f
1 changed files with 6 additions and 1 deletions
|
@ -339,6 +339,9 @@ void NetAccess::enter_loop()
|
|||
|
||||
void NetAccess::slotResult(KJob *job)
|
||||
{
|
||||
// don't register the job, it has finished
|
||||
d->m_statJob = nullptr;
|
||||
|
||||
lastErrorCode = job->error();
|
||||
d->bJobOK = (job->error() == KJob::NoError);
|
||||
if (!d->bJobOK) {
|
||||
|
@ -377,7 +380,9 @@ void NetAccess::slotRedirection(KIO::Job *job, const KUrl &url)
|
|||
|
||||
void NetAccess::slotShowProgress()
|
||||
{
|
||||
Q_ASSERT(d->m_statJob != nullptr);
|
||||
if (!d->m_statJob) {
|
||||
return;
|
||||
}
|
||||
KIO::getJobTracker()->registerJob(d->m_statJob);
|
||||
KIO::JobPrivate::emitStating(d->m_statJob, d->m_statJob->url());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue