Commit 447fc496 authored by Halla Rempt's avatar Halla Rempt
Browse files

Look in the configured resources folder for templates

BUG:452706
parent b6e859cc
Pipeline #204417 failed with stage
in 66 minutes
......@@ -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