Commit f01704752a130806d58355e5c8a378046b82bc54

Authored by Scott Klum
1 parent cc1536f1

Added default value in the case a template doesn't have a subject when writing a sigset

Showing 1 changed file with 1 additions and 1 deletions
openbr/core/bee.cpp
@@ -102,7 +102,7 @@ void BEE::writeSigset(const QString &sigset, const br::FileList &files, bool ign @@ -102,7 +102,7 @@ void BEE::writeSigset(const QString &sigset, const br::FileList &files, bool ign
102 if ((key == "Index") || (key == "Subject")) continue; 102 if ((key == "Index") || (key == "Subject")) continue;
103 metadata.append(key+"=\""+QtUtils::toString(file.value(key))+"\""); 103 metadata.append(key+"=\""+QtUtils::toString(file.value(key))+"\"");
104 } 104 }
105 - lines.append("\t<biometric-signature name=\"" + file.get<QString>("Subject") +"\">"); 105 + lines.append("\t<biometric-signature name=\"" + file.get<QString>("Subject", file.name) +"\">");
106 lines.append("\t\t<presentation file-name=\"" + file.name + "\" " + metadata.join(" ") + "/>"); 106 lines.append("\t\t<presentation file-name=\"" + file.name + "\" " + metadata.join(" ") + "/>");
107 lines.append("\t</biometric-signature>"); 107 lines.append("\t</biometric-signature>");
108 } 108 }