diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index 11df368..c5ca8a0 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -212,8 +212,11 @@ public: foreach (const Template & t, src) { // build label QString newTitle; + foreach (const QString & s, keys) { - if (t.file.contains(s)) { + if (s.compare("name", Qt::CaseInsensitive) == 0) { + newTitle = newTitle + s + ": " + file.name + " "; + } else if (t.file.contains(s)) { QString out = t.file.get(s); newTitle = newTitle + s + ": " + out + " "; }