Commit 0957c919 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Update KDescendantsProxyModel::setSourceModel to KF5 pre-5.25

Follow-up to 9cd881bd, as better fix
parent b734af8e
......@@ -296,11 +296,7 @@ void KDescendantsProxyModel::setSourceModel(QAbstractItemModel *_sourceModel)
resetInternalData();
if (_sourceModel && _sourceModel->hasChildren()) {
Q_ASSERT(_sourceModel->rowCount() > 0);
d->m_pendingParents.append(QModelIndex());
d->m_relayouting = true;
d->scheduleProcessPendingParents();
d->m_relayouting = false;
d->synchronousMappingRefresh();
}
endResetModel();
......
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