mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor delete operations for pdm objects.
This commit is contained in:
committed by
Magne Sjaastad
parent
80ee1256e7
commit
c366e85682
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "RimViewLinkerCollection.h"
|
||||
|
||||
#include "RimProject.h"
|
||||
#include "RimViewController.h"
|
||||
#include "RimViewLinker.h"
|
||||
|
||||
@@ -92,3 +93,21 @@ void RimViewLinkerCollection::initAfterRead()
|
||||
{
|
||||
this->updateUiIconFromToggleField();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimViewLinkerCollection::onChildDeleted( caf::PdmChildArrayFieldHandle* childArray,
|
||||
std::vector<caf::PdmObjectHandle*>& referringObjects )
|
||||
{
|
||||
uiCapability()->updateConnectedEditors();
|
||||
|
||||
RimProject* project = nullptr;
|
||||
firstAncestorOrThisOfType( project );
|
||||
if ( project )
|
||||
{
|
||||
// Update visibility of top level Linked Views item in the project tree
|
||||
// Not visible if no views are linked
|
||||
project->uiCapability()->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user