diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-01 17:17:56 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:19 +0100 |
| commit | 011e4d522ed7b0df52cdeb014608e9881f8bc76b (patch) | |
| tree | 3b4a960c72b484e48a2d030576d08c3697c44173 /src/modlistviewactions.h | |
| parent | 21ab4ad78b2b7007dc06ed432d707fc6edf98d6e (diff) | |
Fix setting the primary category of multiple mods at once.
Diffstat (limited to 'src/modlistviewactions.h')
| -rw-r--r-- | src/modlistviewactions.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modlistviewactions.h b/src/modlistviewactions.h index 65f323d9..2850d30a 100644 --- a/src/modlistviewactions.h +++ b/src/modlistviewactions.h @@ -87,7 +87,7 @@ public: void setColor(const QModelIndexList& indices, const QModelIndex& refIndex) const; void resetColor(const QModelIndexList& indices) const; - // set the category of the mod in the given list, using the given index as reference + // set the category of the mods in the given list, using the given index as reference // - the categories are set as-is on the refernce mod // - for the other mods, the category is only set if the current state of the category // on the reference is different @@ -95,6 +95,12 @@ public: void setCategories(const QModelIndexList& selected, const QModelIndex& ref, const std::vector<std::pair<int, bool>>& categories) const; + // set the primary category of the mods in the given list, adding the appropriate + // category to the mods unless force is false, in which case the primary category + // is set only on mods that have this category + // + void setPrimaryCategory(const QModelIndexList& selected, int category, bool force = true); + // open the Windows explorer for the specified mods // void openExplorer(const QModelIndexList& index) const; |
