diff --git a/src/kselectionproxymodel.cpp b/src/kselectionproxymodel.cpp index 5169cec..33e59bd 100644 --- a/src/kselectionproxymodel.cpp +++ b/src/kselectionproxymodel.cpp @@ -1110,8 +1110,6 @@ QPair KSelectionProxyModelPrivate::beginRemoveRows(const QModelIndex & { Q_Q(const KSelectionProxyModel); - QPair pair = qMakePair(start, end); - if (m_omitChildren && !m_startWithChildTrees && !m_includeAllSelected) { // SubTreeRoots if (m_rootIndexList.contains(parent) || isDescendantOf(m_rootIndexList, parent)) { @@ -1124,7 +1122,7 @@ QPair KSelectionProxyModelPrivate::beginRemoveRows(const QModelIndex & if (!m_includeAllSelected && !m_omitChildren) { // SubTrees and SubTreesWithoutRoots if (proxyParent.isValid()) { - return pair; + return qMakePair(start, end); } if (m_startWithChildTrees && m_rootIndexList.contains(parent)) { // SubTreesWithoutRoots topLevel