diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-14 19:54:13 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-14 19:54:13 +0100 |
| commit | 2c9a3c7de874a5edfdc6dacf2fd2fcd7f303152d (patch) | |
| tree | ba52f8b8d361f283a0ab04d324e0b30b64582f94 /src/modlistviewactions.cpp | |
| parent | 899308b31d541e78a3e4395bf33cd66c5ec4f769 (diff) | |
Better context menu entries for mod/separator creation.
Diffstat (limited to 'src/modlistviewactions.cpp')
| -rw-r--r-- | src/modlistviewactions.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modlistviewactions.cpp b/src/modlistviewactions.cpp index ed26faa8..c83f2f64 100644 --- a/src/modlistviewactions.cpp +++ b/src/modlistviewactions.cpp @@ -172,6 +172,11 @@ void ModListViewActions::createSeparator(const QModelIndex& index) const int newPriority = -1; if (index.isValid() && m_view->sortColumn() == ModList::COL_PRIORITY) { newPriority = m_core.currentProfile()->getModPriority(index.data(ModList::IndexRole).toInt()); + + // descending order, we need to fix the priority + if (m_view->sortOrder() == Qt::DescendingOrder) { + newPriority++; + } } if (m_core.createMod(name) == nullptr) { |
