MergedProxyModel: Add FIXME

This commit is contained in:
Jonas Kvinge 2021-09-26 18:34:44 +02:00
parent 32ea709350
commit acba68dab9
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ void MergedProxyModel::RemoveSubModel(const QModelIndex &source_parent) {
QModelIndex proxy_parent = mapFromSource(source_parent);
// We can't know how many children it had, since we can't dereference it
// FIXME: This is a bad idea.
resetting_model_ = submodel;
beginRemoveRows(proxy_parent, 0, std::numeric_limits<int>::max() - 1);
endRemoveRows();