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
if (!ownerStr.isEmpty()) {
const int atChar = ownerStr.lastIndexOf(QLatin1Char('@'));
ownerStr = ownerStr.left(atChar);
if (atChar >= 0)
if (nameStr.isEmpty()) {
return i18nc("%1 is folder owner name, %2 is folder contents",
"%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