From c3daf0a772181f824941bf51c4b1d1fe1be5e579 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Tue, 7 Jan 2025 23:52:12 +0000 Subject: [PATCH] Apply clang-format patch manually, add comment My local clang-format doesn't like this change, but I obey the CI --- src/visualisations/projectmpresetmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();