Commit ba2215cb090996f95a512af607296291a72eb108

Authored by Josh Klontz
2 parents a469e14c 0ed7253f

Merge pull request #348 from biometrics/empty_gallery_updates

Better file count for emptyGallery
openbr/plugins/gallery/empty.cpp
@@ -40,7 +40,12 @@ class EmptyGallery : public Gallery @@ -40,7 +40,12 @@ class EmptyGallery : public Gallery
40 { 40 {
41 QDir dir(file.name); 41 QDir dir(file.name);
42 QtUtils::touchDir(dir); 42 QtUtils::touchDir(dir);
43 - gallerySize = dir.count(); 43 + QDirIterator it(dir.absolutePath(), QDir::Files | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
  44 + gallerySize = 0;
  45 + while (it.hasNext()) {
  46 + it.next();
  47 + gallerySize++;
  48 + }
44 } 49 }
45 50
46 TemplateList readBlock(bool *done) 51 TemplateList readBlock(bool *done)