summaryrefslogtreecommitdiff
path: root/src/pluginlist.h
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-11-01 17:58:49 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-11-01 17:58:49 -0500
commit2c57899cf611056a8c5bae1f7f27c9a157df6f41 (patch)
tree09e657e479ecbd042803de90dee5b89625cc521b /src/pluginlist.h
parent3dbfba91e1618e6cdf3ed5ce7ff7955376df03eb (diff)
Fix matching highlights for mod and plugin selections
The selectionChanged event used before requires subtractive/additive logic to work correctly. A separate event is fired for each row and each column for each row that is selected or deselected. The previous logic assumed all of the selection was passed in at once. The logic has been changed to recalculate all highlights each time the event is fired. This is poorly optimized in regards to performance but makes the function work.
Diffstat (limited to 'src/pluginlist.h')
-rw-r--r--src/pluginlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h
index 009c9153..f7817c37 100644
--- a/src/pluginlist.h
+++ b/src/pluginlist.h
@@ -206,7 +206,7 @@ public:
static QString getColumnName(int column);
static QString getColumnToolTip(int column);
- void highlightPlugins(const QItemSelection &selected, const MOShared::DirectoryEntry &directoryEntry, const Profile &profile);
+ void highlightPlugins(const QItemSelectionModel *selection, const MOShared::DirectoryEntry &directoryEntry, const Profile &profile);
void refreshLoadOrder();