diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2025-05-22 14:35:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 14:35:48 -0500 |
| commit | 15f3d2ba0596924c29787938339f1fa3c67135fe (patch) | |
| tree | bd1b859bc7f9b532c570b8090be4b31826c9695e | |
| parent | 48f1f600de5bd81cd6e5ac558f076d2c916c6dde (diff) | |
Fix an error when filters hide highlighted rows (#2245)
- Crash caused by dataChanged triggering selectionChanged in loop
- Repaint accomplishes what we need
| -rw-r--r-- | src/pluginlist.cpp | 3 | ||||
| -rw-r--r-- | src/pluginlistview.cpp | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 61caea14..e90e4b56 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -192,9 +192,6 @@ void PluginList::highlightMasters(const QModelIndexList& selectedPluginIndices) } } } - - emit dataChanged(this->index(0, 0), this->index(static_cast<int>(m_ESPs.size()) - 1, - this->columnCount() - 1)); } void PluginList::refresh(const QString& profileName, diff --git a/src/pluginlistview.cpp b/src/pluginlistview.cpp index 371e742c..a3485fc2 100644 --- a/src/pluginlistview.cpp +++ b/src/pluginlistview.cpp @@ -286,6 +286,7 @@ void PluginListView::setup(OrganizerCore& core, MainWindow* mw, Ui::MainWindow* } mwui->modList->setHighlightedMods(mods); m_core->pluginList()->highlightMasters(pluginIndices); + repaint(); verticalScrollBar()->repaint(); }); |
