mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
FIX: Correct data directory iteration order in CS
This commit is contained in:
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…
x
Reference in New Issue
Block a user