diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-08-04 21:54:25 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-08-04 21:54:25 +0200 |
commit | eec87db86a8a00db0a9145a3b17c53408f7b1f5b (patch) | |
tree | 9df591cc6fe52f3a84c15cdecbbf20959ab99f30 /api/logic/minecraft/ModList.cpp | |
parent | 42a98c366129bba97464f7ac3771b547d6cae804 (diff) | |
download | MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar.gz MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar.lz MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar.xz MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.zip |
GH-1635 add filter bar to mod list pages
Diffstat (limited to 'api/logic/minecraft/ModList.cpp')
-rw-r--r-- | api/logic/minecraft/ModList.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/api/logic/minecraft/ModList.cpp b/api/logic/minecraft/ModList.cpp index 36371ee3..ad588f16 100644 --- a/api/logic/minecraft/ModList.cpp +++ b/api/logic/minecraft/ModList.cpp @@ -199,6 +199,17 @@ bool ModList::deleteMods(int first, int last) return true; } +bool ModList::deleteMods(const QVector<int> &indexes) +{ + for (auto i: indexes) + { + Mod &m = mods[i]; + m.destroy(); + } + emit changed(); + return true; +} + int ModList::columnCount(const QModelIndex &parent) const { return 3; |