Commit b24a532a authored by Halla Rempt's avatar Halla Rempt
Browse files

Look in the configured resources folder for templates

BUG:452706
(cherry picked from commit 447fc496)
parent 59cf015f
Pipeline #204418 failed with stage
in 68 minutes and 59 seconds
......@@ -137,7 +137,9 @@ KisTemplateGroup *KisTemplateTree::find(const QString &name) const
void KisTemplateTree::readGroups()
{
QStringList dirs = KoResourcePaths::findDirs("templates");
dirs << KoResourcePaths::saveLocation("templates");
Q_FOREACH (const QString & dirName, dirs) {
if (!dirName.contains("templates")) continue; // Hack around broken KoResourcePaths
......
Supports Markdown
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