add test case for recursive placeholders

This commit is contained in:
thez3ro 2018-03-05 23:32:04 +01:00 committed by TheZ3ro
parent 18628612b2
commit 10170a555e
2 changed files with 12 additions and 1 deletions

View file

@ -796,7 +796,7 @@ QString Entry::resolvePlaceholderRecursive(const QString& placeholder, int maxDe
switch (typeOfPlaceholder) {
case PlaceholderType::NotPlaceholder:
case PlaceholderType::Unknown:
return placeholder;
return resolveMultiplePlaceholdersRecursive(placeholder, maxDepth - 1);
case PlaceholderType::Title:
if (placeholderType(title()) == PlaceholderType::Title) {
return title();