Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
ad04aa61
Commit
ad04aa61
authored
May 01, 2015
by
Gilles Caulier
🗼
Browse files
backport commit #
b472006f
from git/master to frameworks branch
CCBUGS: 345220
parent
1d4848f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/dmetadata/dmetadata.cpp
View file @
ad04aa61
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment