Diffstat (limited to 'korganizer/koeditordetails.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditordetails.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 2e1ae6e..66f6977 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.cpp @@ -296,15 +296,21 @@ void KOEditorDetails::insertAttendees(const QString& uid,const QStringList& name insertAttendee(a); } } } - void KOEditorDetails::insertAttendee(Attendee *a) { + AttendeeListItem *first = (AttendeeListItem*) mListView->firstChild(); + while (first) { + if ( first->data()->name() == a->name() && first->data()->email() == a->email() ) + return; + first = (AttendeeListItem*) first->nextSibling(); + } + AttendeeListItem *item = new AttendeeListItem(a,mListView); mListView->setSelected( item, true ); } void KOEditorDetails::setDefaults() { |