Commit ad04aa61 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

backport commit #b472006f from git/master to frameworks branch

CCBUGS: 345220
parent 1d4848f7
......@@ -1422,7 +1422,13 @@ bool DMetadata::setImageTagsPath(const QStringList& tagsPath) const
for(int index = 0; index < splitTags.size(); index++)
{
int tagIndex = xmlTags.indexOf(QRegExp(QString(QLatin1String("^<.*>%1$")).arg(splitTags[index])));
int tagIndex = xmlTags.indexOf(category.arg(0) + splitTags[index]);
if (tagIndex == -1)
{
tagIndex = xmlTags.indexOf(category.arg(1) + splitTags[index]);
}
splitTags[index].insert(0, category.arg(index == splitTags.size() - 1 ? 1 : 0));
if (tagIndex == -1)
......
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