pre-proto - Automatically selecting new features after creation

This commit is contained in:
astridkbjorke
2017-01-04 10:08:27 +01:00
parent 6b58adb91b
commit e480de9591
4 changed files with 12 additions and 3 deletions

View File

@@ -30,6 +30,7 @@
#include "RivWellPathSourceInfo.h"
#include "RiuMainWindow.h"
#include "RiuSelectionManager.h"
#include "RiuViewer.h"
@@ -79,8 +80,9 @@ void RicNewWellPathFractureAtPosFeature::onActionTriggered(bool isChecked)
fracture->name = "New Well Path Fracture";
fracture->positionAtWellpath = wellPathItem->m_pipeCenterlineIntersectionInDomainCoords;
fracture->measuredDepth = wellPathItem->m_measuredDepth;
fractureCollection->updateConnectedEditors();
fractureCollection->updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
}
//--------------------------------------------------------------------------------------------------