mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Select last imported wellPath on import, not last wellPath in collection
This commit is contained in:
@@ -70,8 +70,16 @@ void RicWellPathsImportFileFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
if (oilField->wellPathCollection->wellPaths().size() > 0)
|
||||
{
|
||||
RimWellPath* wellPath = oilField->wellPathCollection->wellPaths()[oilField->wellPathCollection->wellPaths().size() - 1];
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(wellPath);
|
||||
|
||||
RimWellPath* wellPath = nullptr;
|
||||
QString wellPathName = oilField->wellPathCollection->newestAddedWellName();
|
||||
|
||||
wellPath = oilField->wellPathCollection->wellPathByName(wellPathName);
|
||||
|
||||
if (wellPath)
|
||||
{
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(wellPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user