-rw-r--r-- | libkcal/calendarlocal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index c33581c..c82ea92 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp | |||
@@ -976,25 +976,25 @@ QPtrList<Journal> CalendarLocal::journals() | |||
976 | QPtrList<Journal> el; | 976 | QPtrList<Journal> el; |
977 | for ( Journal *it = mJournalList.first(); it; it = mJournalList.next() ) | 977 | for ( Journal *it = mJournalList.first(); it; it = mJournalList.next() ) |
978 | if ( it->calEnabled() ) el.append( it ); | 978 | if ( it->calEnabled() ) el.append( it ); |
979 | return el; | 979 | return el; |
980 | } | 980 | } |
981 | void CalendarLocal::setCalendarRemove( int id ) | 981 | void CalendarLocal::setCalendarRemove( int id ) |
982 | { | 982 | { |
983 | 983 | ||
984 | { | 984 | { |
985 | QPtrList<Event> EventList = mEventList; | 985 | QPtrList<Event> EventList = mEventList; |
986 | Event * ev = EventList.first(); | 986 | Event * ev = EventList.first(); |
987 | while ( ev ) { | 987 | while ( ev ) { |
988 | if ( ev->calID() == id ) | 988 | if ( ev->calID() == id && ev->uid().left( 15 ) != QString("last-syncEvent-") ) |
989 | deleteEvent( ev ); | 989 | deleteEvent( ev ); |
990 | ev = EventList.next(); | 990 | ev = EventList.next(); |
991 | } | 991 | } |
992 | } | 992 | } |
993 | { | 993 | { |
994 | 994 | ||
995 | QPtrList<Todo> TodoList = mTodoList; | 995 | QPtrList<Todo> TodoList = mTodoList; |
996 | Todo * ev = TodoList.first(); | 996 | Todo * ev = TodoList.first(); |
997 | while ( ev ) { | 997 | while ( ev ) { |
998 | if ( ev->calID() == id ) | 998 | if ( ev->calID() == id ) |
999 | deleteTodo( ev ); | 999 | deleteTodo( ev ); |
1000 | ev = TodoList.next(); | 1000 | ev = TodoList.next(); |