#3205 Improved default name of modelled wellpaths. Made sure that the name is read and written.

This commit is contained in:
Jacob Støren
2018-08-14 13:22:42 +02:00
parent 319203b7fc
commit a6d91873e6
4 changed files with 18 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ void RicNewEditableWellPathFeature::onActionTriggered(bool isChecked)
{
std::vector<RimWellPath*> newWellPaths;
newWellPaths.push_back(new RimModeledWellPath());
newWellPaths.back()->setName("UWell-" + QString::number(wellPathCollection->wellPaths.size()));
newWellPaths.back()->setName("UWell-" + QString::number(wellPathCollection->modelledWellPathCount()+1));
wellPathCollection->addWellPaths(newWellPaths);
wellPathCollection->uiCapability()->updateConnectedEditors();
wellPathCollection->scheduleRedrawAffectedViews();