mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3623 Grid Items : Do not try to delete object twice
This commit is contained in:
parent
5e17eaf98a
commit
59c1f612fb
@ -402,17 +402,16 @@ void RimGridCollection::syncFromMainGrid()
|
||||
}
|
||||
}
|
||||
|
||||
while (!allPersistentGrids.empty())
|
||||
for (const auto& grid : allPersistentGrids)
|
||||
{
|
||||
auto gridName = allPersistentGrids.front()->name();
|
||||
auto gridName = grid->name();
|
||||
m_persistentLgrs->deleteGridInfo(gridName);
|
||||
removeGridInfo(gridName, allPersistentGrids);
|
||||
}
|
||||
while (!allTemporaryGrids.empty())
|
||||
|
||||
for (const auto& grid : allTemporaryGrids)
|
||||
{
|
||||
auto gridName = allTemporaryGrids.front()->name();
|
||||
m_temporaryLgrs->deleteGridInfo(allTemporaryGrids.front()->name());
|
||||
removeGridInfo(gridName, allTemporaryGrids);
|
||||
auto gridName = grid->name();
|
||||
m_temporaryLgrs->deleteGridInfo(gridName);
|
||||
}
|
||||
}
|
||||
updateConnectedEditors();
|
||||
|
Loading…
Reference in New Issue
Block a user