diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-11 19:15:39 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-11 19:15:39 +0100 |
| commit | 08520822eb91c065a0893da0e2e9d11574450208 (patch) | |
| tree | d137ce8d040e8b149876b4e986dd817e3d25e56a /src/modlistsortproxy.cpp | |
| parent | e53905329a7a204ad0ad41600a9fb3040b942991 (diff) | |
Fix drop in separator and create mod in separator in descending priority.
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 0682b9c3..bc28490f 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -620,7 +620,7 @@ bool ModListSortProxy::canDropMimeData(const QMimeData* data, Qt::DropAction act // in the regular model, when dropping between rows, the row-value passed to
// the sourceModel is inconsistent between ascending and descending ordering.
// This should fix that
- if (sortOrder() == Qt::DescendingOrder) {
+ if (sortOrder() == Qt::DescendingOrder && row != -1) {
--row;
}
@@ -645,7 +645,7 @@ bool ModListSortProxy::dropMimeData(const QMimeData *data, Qt::DropAction action // in the regular model, when dropping between rows, the row-value passed to
// the sourceModel is inconsistent between ascending and descending ordering.
// This should fix that
- if (sortOrder() == Qt::DescendingOrder) {
+ if (sortOrder() == Qt::DescendingOrder && row != -1) {
--row;
}
|
