Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 255befa5 authored by Laurent Montel's avatar Laurent Montel 😁

Don't start it when we can't start job

parent aecc18b9
......@@ -70,8 +70,10 @@ void ContactDisplayMessageMemento::slotSearchJobFinished( KJob *job )
PimCommon::GravatarResolvUrlJob *job = new PimCommon::GravatarResolvUrlJob(this);
job->setEmail(mEmailAddress);
job->setUseDefaultPixmap(GlobalSettings::self()->gravatarUseDefaultImage());
connect(job, SIGNAL(finished(PimCommon::GravatarResolvUrlJob*)), this, SLOT(slotGravatarResolvUrlFinished(PimCommon::GravatarResolvUrlJob*)));
job->start();
if (job->canStart()) {
connect(job, SIGNAL(finished(PimCommon::GravatarResolvUrlJob*)), this, SLOT(slotGravatarResolvUrlFinished(PimCommon::GravatarResolvUrlJob*)));
job->start();
}
}
}
}
......
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