From 748b7e6918c79f1ad9198c4be8016ff379e232ab Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 11 Jan 2021 20:58:53 +0100 Subject: Combine nested if clauses. --- src/modlistbypriorityproxy.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modlistbypriorityproxy.cpp') 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); -- cgit v1.3.1