author | zautrix <zautrix> | 2005-07-04 08:17:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-04 08:17:48 (UTC) |
commit | e19b410f43c4fcf35d3d62fc312d1b5251068691 (patch) (side-by-side diff) | |
tree | c3aecb6089dbb2e068ad072226e227c14cd8c2cf /libkcal/calendarlocal.cpp | |
parent | 068a89b64d8ef4cb49702ed53ab4e415a0b90a80 (diff) | |
download | kdepimpi-e19b410f43c4fcf35d3d62fc312d1b5251068691.zip kdepimpi-e19b410f43c4fcf35d3d62fc312d1b5251068691.tar.gz kdepimpi-e19b410f43c4fcf35d3d62fc312d1b5251068691.tar.bz2 |
fixes
-rw-r--r-- | libkcal/calendarlocal.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index ca64e66..cce798f 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -220,13 +220,14 @@ bool CalendarLocal::addEvent( Event *event ) { insertEvent( event ); event->registerObserver( this ); setModified( true ); - event->setCalID( mDefaultCalendar ); + if ( event->calID() == 0 ) + event->setCalID( mDefaultCalendar ); event->setCalEnabled( true ); return true; } void CalendarLocal::deleteEvent( Event *event ) @@ -274,12 +275,13 @@ bool CalendarLocal::addTodo( Todo *todo ) todo->registerObserver( this ); // Set up subtask relations setupRelations( todo ); setModified( true ); + if ( todo->calID() == 0 ) todo->setCalID( mDefaultCalendar ); todo->setCalEnabled( true ); return true; } void CalendarLocal::deleteTodo( Todo *todo ) @@ -778,13 +780,14 @@ bool CalendarLocal::addJournal(Journal *journal) { mJournalList.append(journal); journal->registerObserver( this ); setModified( true ); - journal->setCalID( mDefaultCalendar ); + if ( journal->calID() == 0 ) + journal->setCalID( mDefaultCalendar ); journal->setCalEnabled( true ); return true; } void CalendarLocal::deleteJournal( Journal *journal ) { |