Commit 2a96387f authored by Laurent Montel's avatar Laurent Montel 😁

Avoid warning when translatedtext is null

parent cea66c1b
......@@ -304,6 +304,9 @@ QString KFileItemModel::roleDescription(const QByteArray& role) const
int count = 0;
const RoleInfoMap* map = rolesInfoMap(count);
for (int i = 0; i < count; ++i) {
if (!map[i].roleTranslation) {
continue;
}
description.insert(map[i].role, i18nc(map[i].roleTranslationContext, map[i].roleTranslation));
}
}
......
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