diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-08-04 03:39:25 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-08-04 03:39:25 +0200 |
commit | 6b82e942d002cefebe1396dc51a7e9515b502782 (patch) | |
tree | f413db91110b3e37cc76c48a2c84e6954aac4b3c /api/logic/minecraft | |
parent | a3ffa3d6659e00e0762017cf64911db0183a250c (diff) | |
download | MultiMC-6b82e942d002cefebe1396dc51a7e9515b502782.tar MultiMC-6b82e942d002cefebe1396dc51a7e9515b502782.tar.gz MultiMC-6b82e942d002cefebe1396dc51a7e9515b502782.tar.lz MultiMC-6b82e942d002cefebe1396dc51a7e9515b502782.tar.xz MultiMC-6b82e942d002cefebe1396dc51a7e9515b502782.zip |
NOISSUE fix build on linux
Diffstat (limited to 'api/logic/minecraft')
-rw-r--r-- | api/logic/minecraft/mod/ModFolderModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/minecraft/mod/ModFolderModel.cpp b/api/logic/minecraft/mod/ModFolderModel.cpp index 7293f837..79459dac 100644 --- a/api/logic/minecraft/mod/ModFolderModel.cpp +++ b/api/logic/minecraft/mod/ModFolderModel.cpp @@ -122,8 +122,8 @@ void ModFolderModel::updateFinished() for(auto & removedMod: removed) { removedRows.append(modsIndex[removedMod]); } - std::sort(removedRows.begin(), removedRows.end()); - for(auto iter = removedRows.rbegin(); iter != removedRows.rend(); iter++) { + std::sort(removedRows.begin(), removedRows.end(), std::greater<int>()); + for(auto iter = removedRows.begin(); iter != removedRows.end(); iter++) { int removedIndex = *iter; beginRemoveRows(QModelIndex(), removedIndex, removedIndex); auto removedIter = mods.begin() + removedIndex; |