Skip to content

Commit

Permalink
FIX: Correct data directory iteration order in CS
Browse files Browse the repository at this point in the history
  • Loading branch information
magicaldave committed Nov 29, 2024
1 parent 064e3c7 commit 82d68ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/opencs/view/doc/filedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ CSVDoc::FileDialog::~FileDialog() = default;

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->sortFiles();
Expand Down

0 comments on commit 82d68ec

Please sign in to comment.