author | zautrix <zautrix> | 2004-11-08 08:05:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-11-08 08:05:08 (UTC) |
commit | 4481ce9842b3820087b24a8bfce2c194974aae73 (patch) (unidiff) | |
tree | 70da30be2b8cd4b6934c1a51c08a9d83aa93d8b6 | |
parent | 90e33436f6d1c502a5620760ac6592b9881ee4ab (diff) | |
download | kdepimpi-4481ce9842b3820087b24a8bfce2c194974aae73.zip kdepimpi-4481ce9842b3820087b24a8bfce2c194974aae73.tar.gz kdepimpi-4481ce9842b3820087b24a8bfce2c194974aae73.tar.bz2 |
some small fixes
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 4 | ||||
-rw-r--r-- | korganizer/koeditordetails.cpp | 8 | ||||
-rw-r--r-- | libkcal/incidencebase.cpp | 13 | ||||
-rw-r--r-- | libkcal/incidencebase.h | 2 |
4 files changed, 21 insertions, 6 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 75df50f..85ca87d 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -351,3 +351,3 @@ | |||
351 | { "Mrs.","Frau" }, | 351 | { "Mrs.","Frau" }, |
352 | { "Ms.","Frau" }, | 352 | { "Ms.","Fr." }, |
353 | { "Prof.","Prof." }, | 353 | { "Prof.","Prof." }, |
@@ -375,3 +375,3 @@ | |||
375 | { "Street:","Strasse:" }, | 375 | { "Street:","Strasse:" }, |
376 | { "Post office box:","PLZ:" }, | 376 | { "Post office box:","Postfach:" }, |
377 | { "Locality:","Stadt:" }, | 377 | { "Locality:","Stadt:" }, |
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); |
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 9aa517c..7525a4a 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp | |||
@@ -215,5 +215,5 @@ void IncidenceBase::setFloats(bool f) | |||
215 | 215 | ||
216 | void IncidenceBase::addAttendee(Attendee *a, bool doupdate) | 216 | bool IncidenceBase::addAttendee(Attendee *a, bool doupdate) |
217 | { | 217 | { |
218 | if (mReadOnly) return; | 218 | if (mReadOnly) return false; |
219 | if (a->name().left(7).upper() == "MAILTO:") | 219 | if (a->name().left(7).upper() == "MAILTO:") |
@@ -221,4 +221,13 @@ void IncidenceBase::addAttendee(Attendee *a, bool doupdate) | |||
221 | 221 | ||
222 | QPtrListIterator<Attendee> qli(mAttendees); | ||
223 | |||
224 | qli.toFirst(); | ||
225 | while (qli) { | ||
226 | if (*qli.current() == *a) | ||
227 | return false; | ||
228 | ++qli; | ||
229 | } | ||
222 | mAttendees.append(a); | 230 | mAttendees.append(a); |
223 | if (doupdate) updated(); | 231 | if (doupdate) updated(); |
232 | return true; | ||
224 | } | 233 | } |
diff --git a/libkcal/incidencebase.h b/libkcal/incidencebase.h index e02d03a..f9a6558 100644 --- a/libkcal/incidencebase.h +++ b/libkcal/incidencebase.h | |||
@@ -102,3 +102,3 @@ class IncidenceBase : public CustomProperties | |||
102 | */ | 102 | */ |
103 | void addAttendee(Attendee *a, bool doupdate=true ); | 103 | bool addAttendee(Attendee *a, bool doupdate=true ); |
104 | // void removeAttendee(Attendee *a); | 104 | // void removeAttendee(Attendee *a); |