From 6f6d1d58938539215bb4fcb5b97cf9fb089a11ef Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 17 Oct 2004 18:08:43 +0000 Subject: more KDE sync fixes --- (limited to 'libkcal') 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 Calendar::incidences() return incidences; } -void Calendar::resetPilotStat() +void Calendar::resetPilotStat(int id ) { QPtrList incidences; Incidence *i; QPtrList e = rawEvents(); - for( i = e.first(); i; i = e.next() ) i->setPilotId( 0 ); + for( i = e.first(); i; i = e.next() ) i->setPilotId( id ); QPtrList t = rawTodos(); - for( i = t.first(); i; i = t.next() ) i->setPilotId( 0 ); + for( i = t.first(); i; i = t.next() ) i->setPilotId( id ); QPtrList j = journals(); - for( i = j.first(); i; i = j.next() ) i->setPilotId( 0 ); + for( i = j.first(); i; i = j.next() ) i->setPilotId( id ); } void Calendar::resetTempSyncStat() { diff --git a/libkcal/calendar.h b/libkcal/calendar.h index d5294eb..b801186 100644 --- a/libkcal/calendar.h +++ b/libkcal/calendar.h @@ -67,7 +67,7 @@ public: virtual ~Calendar(); void deleteIncidence(Incidence *in); void resetTempSyncStat(); - void resetPilotStat(); + void resetPilotStat(int id); /** Clears out the current calendar, freeing all used memory etc. */ -- cgit v0.9.0.2