Commit 3dc36a534fe0e11f5dd01f50a0cc235ecb084520

Authored by Josh Klontz
1 parent 3914e480

added bool option to retrieveOrEnroll

Showing 1 changed file with 1 additions and 1 deletions
openbr/core/core.cpp
... ... @@ -180,7 +180,7 @@ struct AlgorithmCore
180 180  
181 181 void retrieveOrEnroll(const File &file, QScopedPointer<Gallery> &gallery, FileList &galleryFiles)
182 182 {
183   - if ((file.suffix() == "gal") || (file.suffix() == "mem") || (file.suffix() == "template")) {
  183 + if (!file.getBool("enroll") && (QStringList() << "gal" << "mem" << "template").contains(file.suffix())) {
184 184 // Retrieve it
185 185 gallery.reset(Gallery::make(file));
186 186 galleryFiles = gallery->files();
... ...