[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/kpilot/conduits/vcalconduit
From: Adriaan de Groot <groot () kde ! org>
Date: 2005-04-09 23:11:09
Message-ID: 20050409231109.E3F9B487 () office ! kde ! org
[Download RAW message or body]
CVS commit by adridg:
Buglet, fix by Philip
M +7 -2 vcal-conduit.cc 1.109
--- kdepim/kpilot/conduits/vcalconduit/vcal-conduit.cc #1.108:1.109
@@ -132,12 +132,17 @@ KCal::Incidence *VCalConduitPrivate::get
if (!reading)
{
+ // Start from the top
reading=true;
fAllEventsIterator = fAllEvents.begin();
- if ( fAllEventsIterator != fAllEvents.end() ) e = *fAllEventsIterator;
}
else
{
+ // Move on from current position
++fAllEventsIterator;
}
+
+ // Fetch (new) current if possible.
+ if ( fAllEventsIterator != fAllEvents.end() ) e = *fAllEventsIterator;
+ // Then walk the list until we find an unsynced entry
while ( fAllEventsIterator != fAllEvents.end() &&
e && e->syncStatus()==KCal::Incidence::SYNCNONE && e->pilotId() > 0)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic