Commit 991eaaf2 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

Collapse Person node always by default

KOLAB: 3623
(cherry picked from commit 4b8d8e4630332175bc0699442772d53869a31eeb)
parent 502028b8
......@@ -164,7 +164,11 @@ private Q_SLOTS:
for (int i = start; i <= end; i++) {
const QModelIndex index = mTreeView->model()->index(i, 0, parent);
// kDebug() << "expanding " << index.data().toString();
mTreeView->expand(index);
if (index.data(NodeTypeRole).toInt() == PersonNodeRole) {
mTreeView->collapse(index);
} else {
mTreeView->expand(index);
}
if (mTreeView->model()->hasChildren(index)) {
onSourceRowsInserted(index, 0, mTreeView->model()->rowCount(index) - 1);
}
......
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