[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim/KDE/4.11] calendarviews/agenda: Fix typo, -1 is returned in case of error, not 1.
From: Sergio Martins <iamsergio () gmail ! com>
Date: 2013-09-30 16:54:06
Message-ID: E1VQgjW-0001Po-KO () scm ! kde ! org
[Download RAW message or body]
Git commit ec266678b2bdeb08a21624d6b413f59fb21c50de by Sergio Martins.
Committed on 30/09/2013 at 16:52.
Pushed by smartins into branch 'KDE/4.11'.
Fix typo, -1 is returned in case of error, not 1.
M +1 -1 calendarviews/agenda/agendaview.cpp
http://commits.kde.org/kdepim/ec266678b2bdeb08a21624d6b413f59fb21c50de
diff --git a/calendarviews/agenda/agendaview.cpp \
b/calendarviews/agenda/agendaview.cpp index 7ba033b..d12d8e8 100644
--- a/calendarviews/agenda/agendaview.cpp
+++ b/calendarviews/agenda/agendaview.cpp
@@ -1956,7 +1956,7 @@ void AgendaView::slotIncidencesDropped( const \
KCalCore::Incidence::List &inciden incidence->setAllDay( allDay );
incidence->setUid( KCalCore::CalFormat::createUniqueId() );
Akonadi::Collection collection( collectionId() );
- const bool added = 1 != changer()->createIncidence( incidence, \
collection, this ); + const bool added = -1 != \
changer()->createIncidence( incidence, collection, this );
if ( added ) {
// TODO: make async
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic