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

List:       kde-commits
Subject:    KDE/kdepim/runtime/agents/maildispatcher
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2009-12-31 18:00:25
Message-ID: 1262282425.140381.9818.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1068273 by tmcguire:

Follow kdepimlibs API changes


 M  +3 -3      outboxqueue.cpp  


--- trunk/KDE/kdepim/runtime/agents/maildispatcher/outboxqueue.cpp #1068272:1068273
@@ -149,7 +149,7 @@
 
   const DispatchModeAttribute *mA = item.attribute<DispatchModeAttribute>();
   Q_ASSERT( mA );
-  if( mA->dispatchMode() == DispatchModeAttribute::Never ) {
+  if( mA->dispatchMode() == DispatchModeAttribute::Manual ) {
     kDebug() << "Item" << item.id() << "is queued to be sent manually.";
     return;
   }
@@ -177,8 +177,8 @@
   }
   */
 
-  if( mA->dispatchMode() == DispatchModeAttribute::AfterDueDate &&
-      mA->dueDate() > QDateTime::currentDateTime() ) {
+  if( mA->dispatchMode() == DispatchModeAttribute::Automatic &&
+      mA->dueDate().isValid() && mA->dueDate() > QDateTime::currentDateTime() ) {
     // All the above was OK, so accept it for the future.
     kDebug() << "Item" << item.id() << "is accepted to be sent in the future.";
     futureMap.insert( mA->dueDate(), item );
[prev in list] [next in list] [prev in thread] [next in thread] 

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