diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-21 20:21:57 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-21 20:21:57 +0100 |
| commit | 0a069709900fe37c265d8645554ae19e25bea06a (patch) | |
| tree | 3ba5f5f436ce21f50f7626d4f0b889b419dca38b /src/modlistsortproxy.cpp | |
| parent | 60085ae4b662cfd5a3f3d4da78994a275904af96 (diff) | |
Expose proper priority in ModList and sort in the sort proxy.
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 18e91e6e..fc7f3270 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -215,7 +215,12 @@ bool ModListSortProxy::lessThan(const QModelIndex &left, }
} break;
case ModList::COL_PRIORITY: {
- // nop, already compared by priority
+ if (leftMod->isBackup() != rightMod->isBackup()) {
+ lt = leftMod->isBackup();
+ }
+ else if (leftMod->isOverwrite() != rightMod->isOverwrite()) {
+ lt = rightMod->isOverwrite();
+ }
} break;
default: {
log::warn("Sorting is not defined for column {}", left.column());
|
