(#431) Turning toggle field off when removing well log plot viewer widget

This commit is contained in:
Pål Hagen committed 2015-09-08 10:21:33 +02:00
1 parent 5ce0f6988d
commit 1000c96c3e
2 files changed
+8 -1

No files matched your search

@@ -62,6 +62,8 @@ public:
void updateAxisRanges();
void setVisibleDepthRangeFromContents();
caf::PdmField<bool> showWindow;
protected:
// Overridden PDM methods
@@ -80,7 +82,6 @@ private:
private:
QPointer<RiuWellLogPlot> m_viewer;
caf::PdmField<bool> showWindow;
caf::PdmField< std::vector<int> > windowGeometry;
caf::PdmChildArrayField<RimWellLogPlotTrace*> traces;
@@ -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();
}
}
//--------------------------------------------------------------------------------------------------