mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: Use RimProject::current() more in fracture code.
This commit is contained in:
committed by
Magne Sjaastad
parent
d941ff58d0
commit
e2fc4e3de6
@@ -366,12 +366,7 @@ void RimFractureTemplate::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
|
|
||||||
if ( createDisplayModelAndRedraw )
|
if ( createDisplayModelAndRedraw )
|
||||||
{
|
{
|
||||||
RimProject* proj;
|
RimProject::current()->reloadCompletionTypeResultsInAllViews();
|
||||||
this->firstAncestorOrThisOfType( proj );
|
|
||||||
if ( proj )
|
|
||||||
{
|
|
||||||
proj->reloadCompletionTypeResultsInAllViews();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -806,12 +801,7 @@ void RimFractureTemplate::disconnectAllFracturesAndRedrawViews() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RimProject* proj;
|
RimProject::current()->scheduleCreateDisplayModelAndRedrawAllViews();
|
||||||
this->firstAncestorOrThisOfType( proj );
|
|
||||||
if ( proj )
|
|
||||||
{
|
|
||||||
proj->scheduleCreateDisplayModelAndRedrawAllViews();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -82,9 +82,7 @@ void RimWellPathFracture::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
|||||||
updatePositionFromMeasuredDepth();
|
updatePositionFromMeasuredDepth();
|
||||||
updateAzimuthBasedOnWellAzimuthAngle();
|
updateAzimuthBasedOnWellAzimuthAngle();
|
||||||
|
|
||||||
RimProject* proj = nullptr;
|
RimProject::current()->reloadCompletionTypeResultsInAllViews();
|
||||||
this->firstAncestorOrThisOfType( proj );
|
|
||||||
if ( proj ) proj->reloadCompletionTypeResultsInAllViews();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,9 +240,7 @@ void RimWellPathFracture::defineUiOrdering( QString uiConfigName, caf::PdmUiOrde
|
|||||||
{
|
{
|
||||||
uiOrdering.add( nameField() );
|
uiOrdering.add( nameField() );
|
||||||
{
|
{
|
||||||
RimProject* project = nullptr;
|
if ( RimProject::current()->allFractureTemplates().empty() )
|
||||||
this->firstAncestorOrThisOfTypeAsserted( project );
|
|
||||||
if ( project->allFractureTemplates().empty() )
|
|
||||||
{
|
{
|
||||||
uiOrdering.add( &m_createEllipseFractureTemplate );
|
uiOrdering.add( &m_createEllipseFractureTemplate );
|
||||||
uiOrdering.add( &m_createStimPlanFractureTemplate, false );
|
uiOrdering.add( &m_createStimPlanFractureTemplate, false );
|
||||||
|
|||||||
Reference in New Issue
Block a user