diff --git a/openbr/core/core.cpp b/openbr/core/core.cpp index 6b63c3a..1d5c353 100644 --- a/openbr/core/core.cpp +++ b/openbr/core/core.cpp @@ -180,7 +180,7 @@ struct AlgorithmCore void retrieveOrEnroll(const File &file, QScopedPointer &gallery, FileList &galleryFiles) { - if ((file.suffix() == "gal") || (file.suffix() == "mem") || (file.suffix() == "template")) { + if (!file.getBool("enroll") && (QStringList() << "gal" << "mem" << "template").contains(file.suffix())) { // Retrieve it gallery.reset(Gallery::make(file)); galleryFiles = gallery->files();