Commit 47afd2c0 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by David Faure

Show collection id if collection is valid

(cherry picked from commit f7c63f15)
parent 3af0b265
......@@ -97,7 +97,11 @@ public:
} else {
itemStr += QStringLiteral(", ");
}
itemStr += QString::number(item.id()) + QStringLiteral(" from collection %1").arg(item.parentCollection().id());
itemStr += QString::number(item.id());
const Akonadi::Collection parentCollection = item.parentCollection();
if (parentCollection.isValid()) {
itemStr += QStringLiteral(" from collection %1").arg(parentCollection.id());
}
}
return itemStr;
//return QString(); //QString::fromLatin1(ProtocolHelper::entitySetToScope(mRequestedItems));
......
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