#3623 Grid Items : Sync all grid collections from main grid

This commit is contained in:
Magne Sjaastad 2018-11-02 15:42:41 +01:00
parent 2143673aa7
commit 83d4f42e91

View File

@ -893,9 +893,9 @@ bool RimEclipseCase::openReserviorCase()
{ {
std::vector<RimGridCollection*> gridColls; std::vector<RimGridCollection*> gridColls;
descendantsIncludingThisOfType(gridColls); descendantsIncludingThisOfType(gridColls);
if (!gridColls.empty()) for (RimGridCollection* gridCollection : gridColls)
{ {
gridColls.front()->syncFromMainGrid(); gridCollection->syncFromMainGrid();
} }
} }