Skip to content

Commit

Permalink
Merge branch 'why-are-you-walking-backwards' into 'master'
Browse files Browse the repository at this point in the history
FIX: Correct data directory iteration order in CS

See merge request OpenMW/openmw!4469
  • Loading branch information
Capostrophic committed Nov 30, 2024
2 parents 064e3c7 + 82d68ec commit 2aa249e
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 2aa249e

Please sign in to comment.