mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
(#423) Well log plot collection is not visible after deleting all plots
Made sure that the project's connected editors are updated after deleting a well log plot.
This commit is contained in:
parent
7d73d9fcf1
commit
797c14c6f6
@ -34,6 +34,8 @@
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimView.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
|
||||
namespace caf
|
||||
@ -112,6 +114,18 @@ void RicDeleteItemExec::redo()
|
||||
{
|
||||
wellLogPlot->updateAvailableDepthRange();
|
||||
}
|
||||
|
||||
RimWellLogPlotCollection* wellLogPlotCollection = NULL;
|
||||
parentObj->firstAnchestorOrThisOfType(wellLogPlotCollection);
|
||||
if (wellLogPlotCollection)
|
||||
{
|
||||
RimProject* project = NULL;
|
||||
parentObj->firstAnchestorOrThisOfType(project);
|
||||
if (project)
|
||||
{
|
||||
project->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user