Commit 89ef7d49 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that value >=0

parent c653a7d5
......@@ -1380,7 +1380,7 @@ QString TemplateParserJob::findTemplate()
QString tmpl;
qCDebug(TEMPLATEPARSER_LOG) << "Folder found:" << mFolder;
if (mFolder != -1) { // only if a folder was found
if (mFolder >= 0) { // only if a folder was found
QString fid = QString::number(mFolder);
Templates fconf(fid);
if (fconf.useCustomTemplates()) { // does folder use custom templates?
......
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