From 15f3d2ba0596924c29787938339f1fa3c67135fe Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Thu, 22 May 2025 14:35:48 -0500 Subject: Fix an error when filters hide highlighted rows (#2245) - Crash caused by dataChanged triggering selectionChanged in loop - Repaint accomplishes what we need --- src/pluginlist.cpp | 3 --- src/pluginlistview.cpp | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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(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(); }); -- cgit v1.3.1