[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kcalutils] src: Minor optimization
From: Montel Laurent <null () kde ! org>
Date: 2017-08-21 11:39:38
Message-ID: E1djl3S-0006Gp-D1 () code ! kde ! org
[Download RAW message or body]
Git commit f4d00ffdf55c9a8909a5ba1ae2deaba0bcb59d3b by Montel Laurent.
Committed on 21/08/2017 at 11:39.
Pushed by mlaurent into branch 'master'.
Minor optimization
M +1 -1 src/scheduler.cpp
https://commits.kde.org/kcalutils/f4d00ffdf55c9a8909a5ba1ae2deaba0bcb59d3b
diff --git a/src/scheduler.cpp b/src/scheduler.cpp
index a56d3d84e..b796db015 100644
--- a/src/scheduler.cpp
+++ b/src/scheduler.cpp
@@ -338,7 +338,7 @@ bool Scheduler::acceptCancel(const IncidenceBase::Ptr &=
incidence, ScheduleMessag
}
=
// in case we didn't find the to-be-removed incidence
- if (existingIncidences.count() > 0 && inc->revision() > 0) {
+ if (!existingIncidences.isEmpty() && inc->revision() > 0) {
KMessageBox::error(
nullptr,
i18nc("@info",
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic