Commit e3f347ba authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty() here

parent d0706458
...@@ -236,7 +236,7 @@ bool Scheduler::acceptRequest(const IncidenceBase::Ptr &incidence, ScheduleMessa ...@@ -236,7 +236,7 @@ bool Scheduler::acceptRequest(const IncidenceBase::Ptr &incidence, ScheduleMessa
// Move the uid to be the schedulingID and make a unique UID // Move the uid to be the schedulingID and make a unique UID
inc->setSchedulingID(inc->uid(), CalFormat::createUniqueId()); inc->setSchedulingID(inc->uid(), CalFormat::createUniqueId());
// notify the user in case this is an update and we didn't find the to-be-updated incidence // notify the user in case this is an update and we didn't find the to-be-updated incidence
if (existingIncidences.count() == 0 && inc->revision() > 0) { if (existingIncidences.isEmpty() && inc->revision() > 0) {
KMessageBox::information( KMessageBox::information(
nullptr, nullptr,
xi18nc("@info", xi18nc("@info",
......
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