[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kmail] src: Minor
From:       Montel Laurent <null () kde ! org>
Date:       2017-02-28 20:19:57
Message-ID: E1cioFZ-0000V4-9m () code ! kde ! org
[Download RAW message or body]

Git commit b581e7189bb084b21b8aec7e4e5bfd97425b870e by Montel Laurent.
Committed on 28/02/2017 at 20:19.
Pushed by mlaurent into branch 'master'.

Minor

M  +1    -4    src/kmsystemtray.cpp

https://commits.kde.org/kmail/b581e7189bb084b21b8aec7e4e5bfd97425b870e

diff --git a/src/kmsystemtray.cpp b/src/kmsystemtray.cpp
index cb61396b0..0ae9a2eb0 100644
--- a/src/kmsystemtray.cpp
+++ b/src/kmsystemtray.cpp
@@ -370,10 +370,7 @@ void KMSystemTray::slotCollectionStatisticsChanged(Akonadi::Collection::Id id, c
 
 bool KMSystemTray::excludeFolder(const Akonadi::Collection &collection) const
 {
-    if (!collection.isValid()) {
-        return true;
-    }
-    if (!collection.contentMimeTypes().contains(KMime::Message::mimeType())) {
+    if (!collection.isValid() || !collection.contentMimeTypes().contains(KMime::Message::mimeType())) {
         return true;
     }
     if (CommonKernel->outboxCollectionFolder() == collection ||
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic