Commit ea39a8fc authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix connect statement

Proxy models dont emit rowsMoved
parent bf42612a
Pipeline #207359 passed with stage
in 5 minutes and 11 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