FIX: Correct data directory iteration order in CS

master
Dave Corley 4 weeks ago
parent 064e3c7c2e
commit 82d68ec9cf

@ -36,9 +36,9 @@ CSVDoc::FileDialog::~FileDialog() = default;
void CSVDoc::FileDialog::addFiles(const std::vector<std::filesystem::path>& dataDirs) void CSVDoc::FileDialog::addFiles(const std::vector<std::filesystem::path>& 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->addFiles(path);
} }
mSelector->sortFiles(); mSelector->sortFiles();

Loading…
Cancel
Save