From d92f58ffa1937af8a4240b9d235da15f5f352769 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 17 Oct 2004 16:06:42 +0000 Subject: KDE sync fixes --- (limited to 'libkcal/calendar.cpp') diff --git a/libkcal/calendar.cpp b/libkcal/calendar.cpp index a3977d7..eeb5f48 100644 --- a/libkcal/calendar.cpp +++ b/libkcal/calendar.cpp @@ -248,6 +248,22 @@ QPtrList Calendar::incidences() return incidences; } + +void Calendar::resetPilotStat() +{ + QPtrList incidences; + + Incidence *i; + + QPtrList e = rawEvents(); + for( i = e.first(); i; i = e.next() ) i->setPilotId( 0 ); + + QPtrList t = rawTodos(); + for( i = t.first(); i; i = t.next() ) i->setPilotId( 0 ); + + QPtrList j = journals(); + for( i = j.first(); i; i = j.next() ) i->setPilotId( 0 ); +} void Calendar::resetTempSyncStat() { QPtrList incidences; -- cgit v0.9.0.2