if we have no more jobs, delete ourselves later
svn path=/trunk/KDE/kdelibs/; revision=938755
This commit is contained in:
parent
8c30031635
commit
a96782cd4b
@ -189,6 +189,10 @@ void DelayedJobCleaner::jobDone(ThreadWeaver::Job *job)
|
|||||||
|
|
||||||
m_jobs.remove(runJob);
|
m_jobs.remove(runJob);
|
||||||
delete runJob;
|
delete runJob;
|
||||||
|
|
||||||
|
if (m_jobs.isEmpty()) {
|
||||||
|
deleteLater();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DelayedJobCleaner::checkIfFinished()
|
void DelayedJobCleaner::checkIfFinished()
|
||||||
|
Loading…
Reference in New Issue
Block a user