-rw-r--r-- | libkcal/calendar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libkcal/calendar.cpp b/libkcal/calendar.cpp index eeb5f48..52daaaa 100644 --- a/libkcal/calendar.cpp +++ b/libkcal/calendar.cpp | |||
@@ -249,20 +249,20 @@ QPtrList<Incidence> Calendar::incidences() | |||
249 | return incidences; | 249 | return incidences; |
250 | } | 250 | } |
251 | 251 | ||
252 | void Calendar::resetPilotStat() | 252 | void Calendar::resetPilotStat(int id ) |
253 | { | 253 | { |
254 | QPtrList<Incidence> incidences; | 254 | QPtrList<Incidence> incidences; |
255 | 255 | ||
256 | Incidence *i; | 256 | Incidence *i; |
257 | 257 | ||
258 | QPtrList<Event> e = rawEvents(); | 258 | QPtrList<Event> e = rawEvents(); |
259 | for( i = e.first(); i; i = e.next() ) i->setPilotId( 0 ); | 259 | for( i = e.first(); i; i = e.next() ) i->setPilotId( id ); |
260 | 260 | ||
261 | QPtrList<Todo> t = rawTodos(); | 261 | QPtrList<Todo> t = rawTodos(); |
262 | for( i = t.first(); i; i = t.next() ) i->setPilotId( 0 ); | 262 | for( i = t.first(); i; i = t.next() ) i->setPilotId( id ); |
263 | 263 | ||
264 | QPtrList<Journal> j = journals(); | 264 | QPtrList<Journal> j = journals(); |
265 | for( i = j.first(); i; i = j.next() ) i->setPilotId( 0 ); | 265 | for( i = j.first(); i; i = j.next() ) i->setPilotId( id ); |
266 | } | 266 | } |
267 | void Calendar::resetTempSyncStat() | 267 | void Calendar::resetTempSyncStat() |
268 | { | 268 | { |