diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-01-22 13:25:31 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-01-22 13:25:31 +0100 |
| commit | 11b2e0fe34e5029ab5ffc00d0cebc59bf286b7a8 (patch) | |
| tree | 47b3ce09fa6d851b3662dd62ce44642b1ddf7ee2 /src/modinforegular.cpp | |
| parent | fe04cb47e1cd0207ba69f251f0c10e3a694134c0 (diff) | |
Improved performance of pluginlist refresh by removing regex
Diffstat (limited to 'src/modinforegular.cpp')
| -rw-r--r-- | src/modinforegular.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index 185f0495..0f1f93dc 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -631,7 +631,8 @@ QStringList ModInfoRegular::archives() const { QStringList result; QDir dir(this->absolutePath()); - for (const QString &archive : dir.entryList(QStringList({ "*.bsa", "*.ba2" }))) { + QStringList bsaList = dir.entryList(QStringList({ "*.bsa", "*.ba2" })); + for (const QString &archive : bsaList) { result.append(this->absolutePath() + "/" + archive); } return result; |
