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

List:       kde-commits
Subject:    [kdepimlibs] kcalutils: Propagate success or failure more sensibly.
From:       Till Adam <adam () kde ! org>
Date:       2012-08-26 18:37:52
Message-ID: 20120826183752.45C8BA6094 () git ! kde ! org
[Download RAW message or body]

Git commit 4cdc1faad4fe2ce2fa47e405b3229df3a4d9d917 by Till Adam.
Committed on 26/08/2012 at 20:37.
Pushed by tilladam into branch 'master'.

Propagate success or failure more sensibly.

M  +2    -2    kcalutils/scheduler.cpp

http://commits.kde.org/kdepimlibs/4cdc1faad4fe2ce2fa47e405b3229df3a4d9d917

diff --git a/kcalutils/scheduler.cpp b/kcalutils/scheduler.cpp
index 9fec592..09a7bc3 100644
--- a/kcalutils/scheduler.cpp
+++ b/kcalutils/scheduler.cpp
@@ -256,10 +256,10 @@ bool Scheduler::acceptRequest( const IncidenceBase::Ptr &incidence,
   }
   kDebug() << "Storing new incidence with scheduling uid=" << inc->schedulingID()
            << " and uid=" << inc->uid();
-  mCalendar->addIncidence( inc );
+  const bool result = mCalendar->addIncidence( inc );
 
   deleteTransaction( incidence );
-  return true;
+  return result;
 }
 
 bool Scheduler::acceptAdd( const IncidenceBase::Ptr &incidence,
[prev in list] [next in list] [prev in thread] [next in thread] 

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