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

List:       kde-commits
Subject:    KDE/kdepimlibs/akonadi/kmime
From:       Andras Mantia <amantia () kde ! org>
Date:       2010-09-22 11:29:44
Message-ID: 20100922112944.6A7F0AC888 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1178199 by amantia:

Fix the Mark All As actions that I broke recently when introducing the "toggle mark" functionality.

 M  +6 -1      standardmailactionmanager.cpp  


--- trunk/KDE/kdepimlibs/akonadi/kmime/standardmailactionmanager.cpp #1178198:1178199
@@ -330,6 +330,11 @@
       QByteArray typeStr = action->data().toByteArray();
       kDebug() << "Mark all as: " << typeStr;
 
+      bool invert = false;
+      if ( typeStr.startsWith( '!' ) ) {
+        invert = true;
+        typeStr = typeStr.mid(1);
+      }
       StandardMailActionManager::Type type = MarkAllMailAsRead;
       if ( typeStr == "U" )
         type = MarkAllMailAsUnread;
@@ -352,7 +357,7 @@
       Akonadi::MessageStatus targetStatus;
       targetStatus.setStatusFromStr( QLatin1String( typeStr ) );
 
-      MarkAsCommand *command = new MarkAsCommand( targetStatus, collections, mParent );
+      MarkAsCommand *command = new MarkAsCommand( targetStatus, collections, invert, mParent );
       command->execute();
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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