Commit e1af19ea authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix empty i18 warnings on startup

parent 33ffef51
Pipeline #11809 passed with stage
in 13 minutes and 55 seconds
......@@ -139,7 +139,7 @@ template <typename AssetType> bool AbstractAssetsRepository<AssetType>::parseInf
QString id = metadata->get("identifier");
res.name = i18n(metadata->get("title"));
res.name[0] = res.name[0].toUpper();
res.description = i18n(metadata->get("description")) + QString(" (%1)").arg(id);
res.description = metadata->get("description") ? i18n(metadata->get("description")) + QString(" (%1)").arg(id) : id;
res.author = metadata->get("creator");
res.version_str = metadata->get("version");
res.version = ceil(100 * metadata->get_double("version"));
......
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