mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well paths: Update display model after delete
This commit is contained in:
@@ -1586,7 +1586,16 @@ void RimUiTreeView::slotDeleteAllWellPaths()
|
||||
if (myModel)
|
||||
{
|
||||
myModel->deleteAllWellPaths(currentIndex());
|
||||
|
||||
caf::PdmUiTreeItem* uiItem = myModel->getTreeItemFromIndex(currentIndex());
|
||||
if (uiItem && uiItem->dataObject())
|
||||
{
|
||||
RimWellPathCollection* wellPathCollection = dynamic_cast<RimWellPathCollection*>(uiItem->dataObject().p());
|
||||
if (wellPathCollection)
|
||||
{
|
||||
wellPathCollection->scheduleGeometryRegenAndRedrawViews();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user