From 82d68ec9cf93c907f7b0c8d1f1c8cb68f75d4efa Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Thu, 28 Nov 2024 18:19:12 -0600 Subject: [PATCH] FIX: Correct data directory iteration order in CS --- apps/opencs/view/doc/filedialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/doc/filedialog.cpp b/apps/opencs/view/doc/filedialog.cpp index 373e63bef6..455fda20c2 100644 --- a/apps/opencs/view/doc/filedialog.cpp +++ b/apps/opencs/view/doc/filedialog.cpp @@ -36,9 +36,9 @@ CSVDoc::FileDialog::~FileDialog() = default; void CSVDoc::FileDialog::addFiles(const std::vector& dataDirs) { - for (auto iter = dataDirs.rbegin(); iter != dataDirs.rend(); ++iter) + for (const auto& dir : dataDirs) { - QString path = Files::pathToQString(*iter); + QString path = Files::pathToQString(dir); mSelector->addFiles(path); } mSelector->sortFiles();