summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 05:50:59 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 05:50:59 (GMT)
commit24ad911dec51e8547927d82235ea8b10bfb87fe5 (patch)
tree03ea45d167a91e26fd6202a516f569cbb662d27d
parentf213f5230caf7974bc3f3d209484b52e89abbd54 (diff)
Use isEmpty here too
-rw-r--r--src/messagequeuejob.cpp4
-rw-r--r--src/smtpconfigwidget.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/messagequeuejob.cpp b/src/messagequeuejob.cpp
index 9b68746..7867adf 100644
--- a/src/messagequeuejob.cpp
+++ b/src/messagequeuejob.cpp
@@ -80,8 +80,8 @@ bool MessageQueueJob::Private::validate()
return false;
}
- if (addressAttribute.to().count() + addressAttribute.cc().count() +
- addressAttribute.bcc().count() == 0) {
+ if ((addressAttribute.to().count() + addressAttribute.cc().count() +
+ addressAttribute.bcc().count()) == 0) {
q->setError(UserDefinedError);
q->setErrorText(i18n("Message has no recipients."));
q->emitResult();
diff --git a/src/smtpconfigwidget.cpp b/src/smtpconfigwidget.cpp
index cb1ff5e..6b8bb33 100644
--- a/src/smtpconfigwidget.cpp
+++ b/src/smtpconfigwidget.cpp
@@ -102,7 +102,7 @@ public:
}
}
- if (capa.count() == 0) {
+ if (capa.isEmpty()) {
ui.noAuthPossible->setVisible(true);
ui.kcfg_requiresAuthentication->setChecked(false);
ui.kcfg_requiresAuthentication->setEnabled(false);