(#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:
Pål Hagen 2015-09-07 14:30:52 +02:00
parent 7d73d9fcf1
commit 797c14c6f6

View File

@ -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();
}
}
}
}