mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4493 Fracture : Hide Fractures in tree view if no fractures in model
This commit is contained in:
@@ -109,7 +109,6 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||
fracture->setFractureTemplate(fracDef);
|
||||
|
||||
simWell->updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(fracture);
|
||||
|
||||
activeView->scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
@@ -117,10 +116,10 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||
simWell->firstAncestorOrThisOfType(eclipseCase);
|
||||
if (eclipseCase)
|
||||
{
|
||||
RimProject* project;
|
||||
eclipseCase->firstAncestorOrThisOfTypeAsserted(project);
|
||||
project->reloadCompletionTypeResultsForEclipseCase(eclipseCase);
|
||||
proj->reloadCompletionTypeResultsForEclipseCase(eclipseCase);
|
||||
proj->updateConnectedEditors();
|
||||
}
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(fracture);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -98,16 +98,15 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
||||
fracture->updateFracturePositionFromLocation();
|
||||
|
||||
eclipseWell->updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(fracture);
|
||||
|
||||
RimEclipseCase* eclipseCase = nullptr;
|
||||
objHandle->firstAncestorOrThisOfType(eclipseCase);
|
||||
if (eclipseCase)
|
||||
{
|
||||
RimProject* project;
|
||||
objHandle->firstAncestorOrThisOfTypeAsserted(project);
|
||||
project->reloadCompletionTypeResultsForEclipseCase(eclipseCase);
|
||||
proj->reloadCompletionTypeResultsForEclipseCase(eclipseCase);
|
||||
proj->updateConnectedEditors();
|
||||
}
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(fracture);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -96,15 +96,15 @@ void RicNewWellPathFractureFeature::addFracture(RimWellPath* wellPath, double me
|
||||
fracture->setFractureTemplate(fracDef);
|
||||
}
|
||||
|
||||
wellPath->updateConnectedEditors();
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(fracture);
|
||||
|
||||
RimProject* project = nullptr;
|
||||
fractureCollection->firstAncestorOrThisOfType(project);
|
||||
if (project)
|
||||
{
|
||||
project->reloadCompletionTypeResultsInAllViews();
|
||||
project->updateAllRequiredEditors();
|
||||
}
|
||||
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(fracture);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user