mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5055 Fix crash when deleting first row in tables views
This commit is contained in:
parent
9f6d6f693e
commit
d312d423e2
@ -427,6 +427,7 @@ void PdmUiTableViewQModel::setArrayFieldAndBuildEditors(PdmChildArrayFieldHandle
|
||||
else
|
||||
{
|
||||
fieldEditor = it->second;
|
||||
fieldEditor->setUiField(field);
|
||||
}
|
||||
|
||||
if (fieldEditor)
|
||||
@ -575,7 +576,7 @@ void PdmUiTableViewQModel::notifyDataChanged(const QModelIndex& topLeft, const Q
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void PdmUiTableViewQModel::recreateTableItemEditors()
|
||||
{
|
||||
for (auto tableItemEditor : m_tableRowEditors)
|
||||
for (PdmUiTableRowEditor* tableItemEditor : m_tableRowEditors)
|
||||
{
|
||||
delete tableItemEditor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user