mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not add same case more than once in a grid case group
p4#: 21030
This commit is contained in:
@@ -605,6 +605,11 @@ void RimUiTreeModelPdm::addObjects(const QModelIndex& itemIndex, caf::PdmObjectG
|
||||
{
|
||||
RimResultReservoir* rimResultReservoir = typedObjects[i];
|
||||
|
||||
if (gridCaseGroup->contains(rimResultReservoir))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (gridCaseGroup->mainGrid() == NULL)
|
||||
{
|
||||
rimResultReservoir->openEclipseGridFile();
|
||||
|
||||
Reference in New Issue
Block a user