Commit eb593437 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix connect statement

Proxy models dont emit rowsMoved
parent aef9d7ce
Pipeline #207528 canceled with stage
in 1 minute and 24 seconds
......@@ -182,7 +182,7 @@ void KateFileTree::setModel(QAbstractItemModel *model)
header()->resizeSection(1, minSize);
// proxy never emits rowsMoved
connect(m_proxyModel, &QAbstractItemModel::rowsMoved, this, &KateFileTree::onRowsMoved);
connect(m_proxyModel->sourceModel(), &QAbstractItemModel::rowsMoved, this, &KateFileTree::onRowsMoved);
}
void KateFileTree::onRowsMoved(const QModelIndex &, int, int, const QModelIndex &destination, int row)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment