-rw-r--r-- | korganizer/koeventviewer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index 2f538c4..d34e6a9 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp | |||
@@ -99,16 +99,20 @@ void KOEventViewer::setSource(const QString& n) | |||
99 | dia.exec(); | 99 | dia.exec(); |
100 | break; | 100 | break; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | return; | 103 | return; |
104 | } | 104 | } |
105 | #else | 105 | #else |
106 | { | 106 | { |
107 | if ( "uid:organizer" == n ) { | ||
108 | ExternalAppHandler::instance()->requestDetailsFromKAPI("", mCurrentIncidence->organizer(),""); | ||
109 | return; | ||
110 | } | ||
107 | QPtrList<Attendee> attendees = mCurrentIncidence->attendees(); | 111 | QPtrList<Attendee> attendees = mCurrentIncidence->attendees(); |
108 | if (attendees.count()) { | 112 | if (attendees.count()) { |
109 | Attendee *a; | 113 | Attendee *a; |
110 | for(a=attendees.first();a;a=attendees.next()) { | 114 | for(a=attendees.first();a;a=attendees.next()) { |
111 | if ( "uid:"+a->uid() == n ) { | 115 | if ( "uid:"+a->uid() == n ) { |
112 | bool res = ExternalAppHandler::instance()->requestDetailsFromKAPI(a->name(), a->email(), a->uid()); | 116 | bool res = ExternalAppHandler::instance()->requestDetailsFromKAPI(a->name(), a->email(), a->uid()); |
113 | return; | 117 | return; |
114 | } | 118 | } |
@@ -412,17 +416,19 @@ void KOEventViewer::formatAttendees(Incidence *event) | |||
412 | if (!o.isEmpty() && addressList.size()<2) { | 416 | if (!o.isEmpty() && addressList.size()<2) { |
413 | mText += "<a href=\"uid:" + o.uid() + "\">"; | 417 | mText += "<a href=\"uid:" + o.uid() + "\">"; |
414 | mText += o.formattedName(); | 418 | mText += o.formattedName(); |
415 | mText += "</a>\n"; | 419 | mText += "</a>\n"; |
416 | } else { | 420 | } else { |
417 | mText.append(event->organizer()); | 421 | mText.append(event->organizer()); |
418 | } | 422 | } |
419 | #else //DESKTOP_VERSION | 423 | #else //DESKTOP_VERSION |
420 | mText.append(event->organizer()); | 424 | mText += "<a href=\"uid:organizer\">"; |
425 | mText += event->organizer(); | ||
426 | mText += "</a>\n"; | ||
421 | #endif //DESKTOP_VERSION | 427 | #endif //DESKTOP_VERSION |
422 | 428 | ||
423 | 429 | ||
424 | #else | 430 | #else |
425 | mText.append(event->organizer()); | 431 | mText.append(event->organizer()); |
426 | #endif | 432 | #endif |
427 | 433 | ||
428 | if (iconPath) { | 434 | if (iconPath) { |