diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-10-31 12:27:44 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-10-31 12:27:44 -0400 |
| commit | 71fc5d0af5593c04cd48587e72252cc0df24752d (patch) | |
| tree | 6596a576cfdc14371056dd86a029bd924a7cb0bd /src/modinfodialogtextfiles.cpp | |
| parent | 5ee734c1890fe35dbfff4770654051688fb3b725 (diff) | |
stack overflow when searching text files/ini lists because they reported children to infinity and beyond
removed update delays for filters in mod info dialog
fixed conflict lists not using source sorting so they wouldn't use the case insensitive natsort
Diffstat (limited to 'src/modinfodialogtextfiles.cpp')
| -rw-r--r-- | src/modinfodialogtextfiles.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modinfodialogtextfiles.cpp b/src/modinfodialogtextfiles.cpp index c897ae1b..4bdc8ee1 100644 --- a/src/modinfodialogtextfiles.cpp +++ b/src/modinfodialogtextfiles.cpp @@ -23,8 +23,12 @@ public: return {}; } - int rowCount(const QModelIndex& ={}) const override + int rowCount(const QModelIndex& index={}) const override { + // no child nodes + if (index.isValid()) + return 0; + return static_cast<int>(m_files.size()); } @@ -114,6 +118,7 @@ GenericFilesTab::GenericFilesTab( m_filter.setEdit(filter); m_filter.setList(m_list); + m_filter.setUpdateDelay(false); QObject::connect( m_list->selectionModel(), &QItemSelectionModel::currentRowChanged, |
