summaryrefslogtreecommitdiff
path: root/src/modlistbypriorityproxy.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-11 20:58:53 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-11 20:58:53 +0100
commit748b7e6918c79f1ad9198c4be8016ff379e232ab (patch)
treefb7b5e068824bc21fb739afe48325dff840b22de /src/modlistbypriorityproxy.cpp
parent16b825bc5d9a03a3d0ef6453e07cf298e23965a2 (diff)
Combine nested if clauses.
Diffstat (limited to 'src/modlistbypriorityproxy.cpp')
-rw-r--r--src/modlistbypriorityproxy.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modlistbypriorityproxy.cpp b/src/modlistbypriorityproxy.cpp
index 4fd589a4..b5d17c46 100644
--- a/src/modlistbypriorityproxy.cpp
+++ b/src/modlistbypriorityproxy.cpp
@@ -234,10 +234,8 @@ bool ModListByPriorityProxy::canDropMimeData(const QMimeData* data, Qt::DropActi
}
// the row may be outside of the children list if we insert at the end
- if (!parent.isValid()) {
- if (row >= m_Root.children.size()) {
- return false;
- }
+ if (!parent.isValid() && row >= m_Root.children.size()) {
+ return false;
}
return QAbstractProxyModel::canDropMimeData(data, action, row, column, parent);