Commit af928485 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[KFileTreeView] Manually expand tree when model tells us to

It seems just setting the current index isn't enough to expand all the way down.

BUG: 389305
FIXED-IN: 5.12.0

Differential Revision: https://phabricator.kde.org/D10016
parent d6013918
......@@ -79,6 +79,7 @@ void KFileTreeView::Private::_k_expanded(const QModelIndex &baseIndex)
{
QModelIndex index = mProxyModel->mapFromSource(baseIndex);
q->setExpanded(index, true);
q->selectionModel()->clearSelection();
q->selectionModel()->setCurrentIndex(index, QItemSelectionModel::SelectCurrent);
q->scrollTo(index);
......
Markdown is supported
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