author | zautrix <zautrix> | 2005-11-25 21:00:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-11-25 21:00:35 (UTC) |
commit | 81d012860ea3d5d17d0e9cf16ec992baa83efbbf (patch) (side-by-side diff) | |
tree | 2e5ce0b81f1700f9c6dc60a8411029cd194e45a1 /libkcal/calendarlocal.cpp | |
parent | 2468bddcb380d8621d5bb49b69b3492d90562d93 (diff) | |
download | kdepimpi-81d012860ea3d5d17d0e9cf16ec992baa83efbbf.zip kdepimpi-81d012860ea3d5d17d0e9cf16ec992baa83efbbf.tar.gz kdepimpi-81d012860ea3d5d17d0e9cf16ec992baa83efbbf.tar.bz2 |
sync
-rw-r--r-- | libkcal/calendarlocal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 2a57724..c33581c 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -186,49 +186,50 @@ void CalendarLocal::setSyncEventsEnabled() void CalendarLocal::setSyncEventsReadOnly() { Event * ev; ev = mEventList.first(); while ( ev ) { if ( ev->uid().left(15) == QString("last-syncEvent-") ) { ev->setReadOnly( true ); } ev = mEventList.next(); } } void CalendarLocal::addCalendar( Calendar* cal ) { cal->setDontDeleteIncidencesOnClose(); setSyncEventsEnabled(); { QPtrList<Event> EventList = cal->rawEvents(); QPtrList<Event> el; Event * ev = EventList.first(); while ( ev ) { if ( ev->uid().left( 15 ) == QString("last-syncEvent-") ) { Event * se = event( ev->uid() ); if ( se ) - el.append( se ); + el.append( se ); + ev->setCalID( 1 ); } ev->unRegisterObserver( cal ); ev->registerObserver( this ); mEventList.append( ev ); ev = EventList.next(); } for ( ev = el.first(); ev; ev = el.next() ) { deleteIncidence ( ev ); } } { QPtrList<Todo> TodoList = cal->rawTodos(); Todo * ev = TodoList.first(); while ( ev ) { QString rel = ev->relatedToUid(); if ( !rel.isEmpty() ){ ev->setRelatedTo ( 0 ); ev->setRelatedToUid( rel ); } ev = TodoList.next(); } //TodoList = cal->rawTodos(); ev = TodoList.first(); |