-rw-r--r-- | libkcal/calendarlocal.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 00a43e5..e75df70 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -79,12 +79,16 @@ bool CalendarLocal::save( const QString &fileName, CalFormat *format ) FileStorage storage( this, fileName, format ); return storage.save(); } void CalendarLocal::close() { + + Todo * i; + for( i = mTodoList.first(); i; i = mTodoList.next() ) i->setRunning(false); + mEventList.setAutoDelete( true ); mTodoList.setAutoDelete( true ); mJournalList.setAutoDelete( false ); mEventList.clear(); mTodoList.clear(); |