mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Select last imported wellPath on import, not last wellPath in collection
This commit is contained in:
@@ -96,6 +96,7 @@ RimWellPathCollection::RimWellPathCollection()
|
||||
wellPaths.uiCapability()->setUiHidden(true);
|
||||
|
||||
m_wellPathImporter = new RifWellPathImporter;
|
||||
m_newestAddedWellName = QString();
|
||||
}
|
||||
|
||||
|
||||
@@ -273,6 +274,11 @@ void RimWellPathCollection::readAndAddWellPaths(std::vector<RimWellPath*>& wellP
|
||||
progress.incrementProgress();
|
||||
}
|
||||
|
||||
if (!wellPathArray.empty())
|
||||
{
|
||||
m_newestAddedWellName = wellPathArray.back()->name();
|
||||
}
|
||||
|
||||
this->sortWellsByName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user