diff --git a/openbr/plugins/gallery/empty.cpp b/openbr/plugins/gallery/empty.cpp index 56f5548..a361e3e 100644 --- a/openbr/plugins/gallery/empty.cpp +++ b/openbr/plugins/gallery/empty.cpp @@ -40,7 +40,12 @@ class EmptyGallery : public Gallery { QDir dir(file.name); QtUtils::touchDir(dir); - gallerySize = dir.count(); + QDirIterator it(dir.absolutePath(), QDir::Files | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); + gallerySize = 0; + while (it.hasNext()) { + it.next(); + gallerySize++; + } } TemplateList readBlock(bool *done)