diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlot.h b/ApplicationCode/ProjectDataModel/RimWellLogPlot.h index 4a5e40d90d..c3717caeab 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlot.h +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlot.h @@ -62,6 +62,8 @@ public: void updateAxisRanges(); void setVisibleDepthRangeFromContents(); + caf::PdmField showWindow; + protected: // Overridden PDM methods @@ -80,7 +82,6 @@ private: private: QPointer m_viewer; - caf::PdmField showWindow; caf::PdmField< std::vector > windowGeometry; caf::PdmChildArrayField traces; diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp index 1ff09bd816..169a206a3d 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp @@ -57,6 +57,12 @@ RiuWellLogPlot::RiuWellLogPlot(RimWellLogPlot* plotDefinition, QWidget* parent) //-------------------------------------------------------------------------------------------------- RiuWellLogPlot::~RiuWellLogPlot() { + if (m_plotDefinition) + { + m_plotDefinition->showWindow = false; + m_plotDefinition->uiCapability()->updateUiIconFromToggleField(); + m_plotDefinition->updateConnectedEditors(); + } } //--------------------------------------------------------------------------------------------------