Commit 4f1df450 authored by Kevin Funk's avatar Kevin Funk
Browse files

ExecuteCompositeJob: Improve debugging output

parent 73d97e6b
......@@ -49,10 +49,13 @@ ExecuteCompositeJob::~ExecuteCompositeJob()
void ExecuteCompositeJob::start()
{
if(hasSubjobs())
subjobs().first()->start();
else
if(hasSubjobs()) {
auto first = subjobs().first();
kDebug() << "starting:" << first;
first->start();
} else {
emitResult();
}
}
void ExecuteCompositeJob::slotResult(KJob* job)
......@@ -60,10 +63,10 @@ void ExecuteCompositeJob::slotResult(KJob* job)
kDebug() << "finished: "<< job << job->error() << error();
KCompositeJob::slotResult(job);
if(hasSubjobs() && !error() && !d->m_killing)
{
if (hasSubjobs() && !error() && !d->m_killing) {
kDebug() << "remaining: " << subjobs().count() << subjobs();
KJob* nextJob=subjobs().first();
KJob* nextJob = subjobs().first();
kDebug() << "starting:" << nextJob;
nextJob->start();
} else {
setError(job->error());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment