diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2025-01-02 08:52:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-02 08:52:38 +0100 |
| commit | f8340e16201c214eef5327c4e810432e12b23805 (patch) | |
| tree | 88814d5d1d5d8413adc72e4e83990ed986e6a144 /src/pluginlist.cpp | |
| parent | 110014bf5eb1df045790204836e8d0d44fcea1e2 (diff) | |
Highlight mods that contain selected files in data tab (#2179)
Diffstat (limited to 'src/pluginlist.cpp')
| -rw-r--r-- | src/pluginlist.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<unsigned int>& modIndices, this->columnCount() - 1)); } -void PluginList::highlightMasters( - const std::vector<unsigned int>& 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()) { |
