mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
#3037 AppFwk - Table Editor : Update UI for all cells
This is required when updating the table editor for the first time, and when adding a new row. Will potentially cause performance issues for large tables.
This commit is contained in:
parent
3d3585515f
commit
4fd2f982fd
@ -423,6 +423,20 @@ void PdmUiTableViewQModel::setPdmData(PdmChildArrayFieldHandle* listField, const
|
||||
recreateTableItemEditors();
|
||||
|
||||
endResetModel();
|
||||
|
||||
if (m_pdmList)
|
||||
{
|
||||
// Update UI for all cells, as the content potentially has changed
|
||||
// This will probably cause performance issues for large tables
|
||||
|
||||
std::vector<PdmObjectHandle*> objects;
|
||||
m_pdmList->childObjects(&objects);
|
||||
|
||||
for (auto obj : objects)
|
||||
{
|
||||
obj->uiCapability()->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user