Commit bb163794 authored by Laurent Montel's avatar Laurent Montel 😁

Use truncate here

parent 60e41b84
...@@ -628,7 +628,8 @@ QString CalendarSupport::displayName(Akonadi::ETMCalendar *calendar, const Akona ...@@ -628,7 +628,8 @@ QString CalendarSupport::displayName(Akonadi::ETMCalendar *calendar, const Akona
if (!ownerStr.isEmpty()) { if (!ownerStr.isEmpty()) {
const int atChar = ownerStr.lastIndexOf(QLatin1Char('@')); const int atChar = ownerStr.lastIndexOf(QLatin1Char('@'));
ownerStr = ownerStr.left(atChar); if (atChar >= 0)
ownerStr.truncate(atChar);
if (nameStr.isEmpty()) { if (nameStr.isEmpty()) {
return i18nc("%1 is folder owner name, %2 is folder contents", return i18nc("%1 is folder owner name, %2 is folder contents",
"%1's Google %2", ownerStr, typeStr); "%1's Google %2", ownerStr, typeStr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment