summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 05:49:05 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 05:49:05 (GMT)
commit22a3130eba1762fadead33c2067bf9ae25e9e0e2 (patch)
treeda5f3ef448786d2bb7eb5683c5b41ccf3f84a3fe
parentcb6f77ab54b31128908d7a12b29ae5a7ffb75d8f (diff)
use isEmpty
-rw-r--r--resources/google/calendar/calendarresource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/google/calendar/calendarresource.cpp b/resources/google/calendar/calendarresource.cpp
index 413b545..0680027 100644
--- a/resources/google/calendar/calendarresource.cpp
+++ b/resources/google/calendar/calendarresource.cpp
@@ -701,7 +701,7 @@ void CalendarResource::slotTaskAddedSearchFinished(KJob *job)
KGAPI2::Job *newJob;
// The parent is not known, so give up and just store the item in Google
// without the information about parent.
- if (items.count() == 0) {
+ if (items.isEmpty()) {
task->setRelatedTo(QString(), KCalCore::Incidence::RelTypeParent);
newJob = new TaskCreateJob(task, tasksListId, account(), this);
} else {