From f8340e16201c214eef5327c4e810432e12b23805 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Thu, 2 Jan 2025 08:52:38 +0100 Subject: Highlight mods that contain selected files in data tab (#2179) --- src/pluginlist.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/pluginlist.cpp') diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 04d4462a..eaf47b3a 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -161,15 +161,14 @@ void PluginList::highlightPlugins(const std::vector& modIndices, this->columnCount() - 1)); } -void PluginList::highlightMasters( - const std::vector& selectedPluginIndices) +void PluginList::highlightMasters(const QModelIndexList& selectedPluginIndices) { for (auto& esp : m_ESPs) { esp.isMasterOfSelectedPlugin = false; } for (const auto& pluginIndex : selectedPluginIndices) { - const ESPInfo& plugin = m_ESPs[pluginIndex]; + const ESPInfo& plugin = m_ESPs[pluginIndex.row()]; for (const auto& master : plugin.masters) { const auto iter = m_ESPsByName.find(master); if (iter != m_ESPsByName.end()) { -- cgit v1.3.1