diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2025-05-22 03:38:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 10:38:39 +0200 |
| commit | eddc30a47f3daefbe4ef29b5de261a1e18949dd3 (patch) | |
| tree | 2f29288944010550270fa0a0130dd37027a346b0 /src/modinfodialogtextfiles.cpp | |
| parent | 52b37a760c0731f6160bb07e1ab909bbf268c2a6 (diff) | |
Dependency Updates Meta PR (#2242)
* Update dll manifests
* Fixes for emit / model refresh issues
Diffstat (limited to 'src/modinfodialogtextfiles.cpp')
| -rw-r--r-- | src/modinfodialogtextfiles.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modinfodialogtextfiles.cpp b/src/modinfodialogtextfiles.cpp index cc13e2d2..1f22d370 100644 --- a/src/modinfodialogtextfiles.cpp +++ b/src/modinfodialogtextfiles.cpp @@ -9,6 +9,7 @@ class FileListModel : public QAbstractItemModel public: void clear() { + beginResetModel(); m_files.clear(); endResetModel(); } @@ -58,6 +59,8 @@ public: void finished() { + beginResetModel(); + std::sort(m_files.begin(), m_files.end(), [](const auto& a, const auto& b) { return (naturalCompare(a.text, b.text) < 0); }); |
