-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 | |||
@@ -301,5 +301,11 @@ void KOEditorDetails::insertAttendees(const QString& uid,const QStringList& name | |||
301 | 301 | ||
302 | |||
303 | void KOEditorDetails::insertAttendee(Attendee *a) | 302 | void KOEditorDetails::insertAttendee(Attendee *a) |
304 | { | 303 | { |
304 | AttendeeListItem *first = (AttendeeListItem*) mListView->firstChild(); | ||
305 | while (first) { | ||
306 | if ( first->data()->name() == a->name() && first->data()->email() == a->email() ) | ||
307 | return; | ||
308 | first = (AttendeeListItem*) first->nextSibling(); | ||
309 | } | ||
310 | |||
305 | AttendeeListItem *item = new AttendeeListItem(a,mListView); | 311 | AttendeeListItem *item = new AttendeeListItem(a,mListView); |