diff --git a/src/visualisations/projectmpresetmodel.cpp b/src/visualisations/projectmpresetmodel.cpp index 9fcff21b2f..438083a2d5 100644 --- a/src/visualisations/projectmpresetmodel.cpp +++ b/src/visualisations/projectmpresetmodel.cpp @@ -35,10 +35,9 @@ ProjectMPresetModel::ProjectMPresetModel(ProjectMVisualisation* vis, QObject* parent) : QAbstractItemModel(parent), vis_(vis) { // Find presets - QDirIterator it(vis_->preset_url(), - QStringList() << "*.milk" << "*.prjm", - QDir::Files | QDir::NoDotAndDotDot | QDir::Readable, - QDirIterator::Subdirectories); + QDirIterator it(vis_->preset_url(), QStringList() << "*.milk" << "*.prjm", + QDir::Files | QDir::NoDotAndDotDot | QDir::Readable, + QDirIterator::Subdirectories); std::set> files; while (it.hasNext()) { it.next(); diff --git a/src/visualisations/projectmvisualisation.cpp b/src/visualisations/projectmvisualisation.cpp index ba5fff6777..4072e25c7c 100644 --- a/src/visualisations/projectmvisualisation.cpp +++ b/src/visualisations/projectmvisualisation.cpp @@ -93,7 +93,9 @@ void ProjectMVisualisation::InitProjectM() { if (!QFile::exists(path)) continue; // Don't use empty directories - if (QDir(path).entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot).isEmpty()) + if (QDir(path) + .entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot) + .isEmpty()) continue; preset_path = path;