Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
8c6f5804
Commit
8c6f5804
authored
Nov 08, 2021
by
Volker Krause
Browse files
Improve naming of pkpass ical attachments
"Boarding pass" only makes sense for flights.
parent
1ae77aa4
Pipeline
#95359
canceled with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
plugins/messageviewer/bodypartformatter/itinerary/itineraryurlhandler.cpp
View file @
8c6f5804
...
...
@@ -200,7 +200,8 @@ static void attachPass(const KCalendarCore::Event::Ptr &event, const QVector<QVa
event
->
deleteAttachments
(
QStringLiteral
(
"application/vnd.apple.pkpass"
));
using
namespace
KCalendarCore
;
Attachment
att
(
data
.
toBase64
(),
QStringLiteral
(
"application/vnd.apple.pkpass"
));
att
.
setLabel
(
i18n
(
"Boarding Pass"
));
// TODO add passenger name after string freeze is lifted
att
.
setLabel
(
JsonLd
::
canConvert
<
FlightReservation
>
(
reservation
)
?
i18n
(
"Boarding Pass"
)
:
i18n
(
"Ticket"
));
// TODO add passenger name after string freeze is lifted
event
->
addAttachment
(
att
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment