mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11896 Make sure the Fractures folder in view is visible when required
The Fractures folder in a 3D view becomes visible when the first fracture is added. Make sure that the Project Tree is recreated correctly.
This commit is contained in:
parent
3cc2958384
commit
db20065e1e
@ -150,6 +150,8 @@ void RicCreateMultipleFracturesFeature::slotAppendFractures()
|
||||
coll->updateConnectedEditors();
|
||||
}
|
||||
|
||||
RimWellPathFractureCollection::updateAfterFractureIsAdded();
|
||||
|
||||
proj->reloadCompletionTypeResultsInAllViews();
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,8 @@ RimWellPathFracture* RicNewWellPathFractureFeature::addFracture( gsl::not_null<R
|
||||
project->reloadCompletionTypeResultsInAllViews();
|
||||
}
|
||||
|
||||
RimWellPathFractureCollection::updateAfterFractureIsAdded();
|
||||
|
||||
// Update well path, as the completion collections are hidden if empty. This update will make sure that the folder
|
||||
// and completion is visible
|
||||
wellPath->updateAllRequiredEditors();
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
|
||||
#include "Rim3dView.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
|
||||
@ -79,6 +80,18 @@ void RimWellPathFractureCollection::deleteFractures()
|
||||
m_fractures.deleteChildren();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathFractureCollection::updateAfterFractureIsAdded()
|
||||
{
|
||||
// When a fracture is created, update Project Tree for a view to make sure the Fractures object becomes visible
|
||||
for ( auto view : RimProject::current()->allViews() )
|
||||
{
|
||||
view->updateAllRequiredEditors();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -46,6 +46,8 @@ public:
|
||||
void removeFracture( RimWellPathFracture* fracture );
|
||||
void deleteFractures();
|
||||
|
||||
static void updateAfterFractureIsAdded();
|
||||
|
||||
std::vector<RimWellPathFracture*> allFractures() const;
|
||||
std::vector<RimWellPathFracture*> activeFractures() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user