diff --git a/src/visualisations/projectmpresetmodel.cpp b/src/visualisations/projectmpresetmodel.cpp index 438083a2d5..ceba33ee25 100644 --- a/src/visualisations/projectmpresetmodel.cpp +++ b/src/visualisations/projectmpresetmodel.cpp @@ -35,9 +35,12 @@ ProjectMPresetModel::ProjectMPresetModel(ProjectMVisualisation* vis, QObject* parent) : QAbstractItemModel(parent), vis_(vis) { // Find presets - QDirIterator it(vis_->preset_url(), QStringList() << "*.milk" << "*.prjm", + QDirIterator it(vis_->preset_url(), + QStringList() << "*.milk" + << "*.prjm", QDir::Files | QDir::NoDotAndDotDot | QDir::Readable, QDirIterator::Subdirectories); + // std::set makes them sorted std::set> files; while (it.hasNext()) { it.next();