-rw-r--r-- | korganizer/koeventviewer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index 92d2a80..c0acf34 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -178,9 +178,9 @@ void KOEventViewer::setSource(const QString& n) mailToAttendees( true ); } else if ( n.mid(7,4) == "RSVP" ) { mailToAttendees( false ); } else { - ExternalAppHandler::instance()->mailToOneContact( n.mid(7) ); + ExternalAppHandler::instance()->mailToOneContact( n.mid(7) ); //QCopEnvelope e("QPE/Application/ompi", "newMail(QString)" ); //e << n.mid(7); } //#endif @@ -354,9 +354,9 @@ void KOEventViewer::appendEvent(Event *event, int mode ) } } if (!event->location().isEmpty()) { addTag("p","<b>"+i18n("Location: ")+"</b>"+ deTag(event->location() ) ); - mMailSubject += i18n(" at ") + event->location(); + mMailSubject += " (" + i18n("Location: ") + event->location() + ")"; } if (event->doesRecur()) { QString recurText = event->recurrenceText(); @@ -513,15 +513,16 @@ void KOEventViewer::appendTodo(Todo *event, int mode ) } if (event->hasStartDate()) { mText.append(i18n("<p><b>Start on:</b> %1</p>").arg(event->dtStartStr(KOPrefs::instance()->mShortDateInViewer))); } + if (!event->location().isEmpty()) { + mMailSubject += " (" + i18n("Location: ") + event->location() + ")"; + } if (event->hasDueDate()) { mText.append(i18n("<p><b>Due on:</b> %1</p>").arg(event->dtDueStr(KOPrefs::instance()->mShortDateInViewer))); - mMailSubject += i18n(" - " )+event->dtDueStr( true ); } if (!event->location().isEmpty()) { addTag("p","<b>"+i18n("Location: ")+"</b>"+ deTag(event->location() ) ); - mMailSubject += i18n(" at ") + event->location(); } mText.append(i18n("<p><b>Priority:</b> %2</p>") .arg(QString::number(event->priority()))); |