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

List:       kde-commits
Subject:    extragear/pim/mailody/src
From:       Tom Albers <toma () kde ! org>
Date:       2009-10-16 19:40:16
Message-ID: 1255722016.180200.1113.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1036198 by toma:

nly do popups for unseen messages, else opening a folder launches an insane amount of popups.



 M  +5 -0      mainwindow.cpp  
 M  +6 -0      systemtray.cpp  


--- trunk/extragear/pim/mailody/src/mainwindow.cpp #1036197:1036198
@@ -312,6 +312,11 @@
     m_favoritesView->setModel( favoritesModel );
 
     StandardActionManager* stdActionManager = new StandardActionManager( m_actionCollection, this );
+
+    //probably needsa lot more, but you have to start somewhere...
+    stdActionManager->setActionText( Akonadi::StandardActionManager::CopyItems,
+                                     ki18np( "Copy Mail", "Copy %1 Mails" ) );
+
     stdActionManager->setItemSelectionModel( m_headerWidget->view()->selectionModel() );
     stdActionManager->setCollectionSelectionModel( m_collectionView->selectionModel() );
     stdActionManager->setFavoriteCollectionsModel( favoritesModel );
--- trunk/extragear/pim/mailody/src/systemtray.cpp #1036197:1036198
@@ -68,6 +68,12 @@
                               const Akonadi::Collection& collection )
 {
     kDebug() << item.id();
+
+    if ( item.hasFlag( "\\Seen" ) ) {
+        kDebug() << "Message already seen";
+        return;
+    }
+
     if ( !item.hasPayload<KMime::Message::Ptr>() ) {
         kDebug() << "No payload";
         return;
[prev in list] [next in list] [prev in thread] [next in thread] 

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