Fix radar product model display and refresh

This commit is contained in:
Dan Paulat 2022-10-10 16:08:41 -05:00
parent f24aa78b50
commit 917926a0ec
2 changed files with 11 additions and 0 deletions

View file

@ -191,9 +191,19 @@ void TreeModel::AppendRow(TreeItem* parent, TreeItem* child)
const int first = childCount;
const int last = childCount;
if (parent == p->rootItem_.get())
{
beginResetModel();
}
beginInsertRows(parentIndex, first, last);
parent->AppendChild(child);
endInsertRows();
if (parent == p->rootItem_.get())
{
endResetModel();
}
}
const TreeItem* TreeModelImpl::item(const QModelIndex& index) const