if we have no more jobs, delete ourselves later

svn path=/trunk/KDE/kdelibs/; revision=938755
This commit is contained in:
Aaron J. Seigo 2009-03-12 22:02:31 +00:00
parent 8c30031635
commit a96782cd4b

View File

@ -189,6 +189,10 @@ void DelayedJobCleaner::jobDone(ThreadWeaver::Job *job)
m_jobs.remove(runJob);
delete runJob;
if (m_jobs.isEmpty()) {
deleteLater();
}
}
void DelayedJobCleaner::checkIfFinished()