#2915 Summary Preview Plot : Do not add to MDI aread to avoid ghost MDI window

This commit is contained in:
Magne Sjaastad 2018-05-14 20:48:44 +02:00
parent e5227c15f0
commit ca2a46a588
2 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,6 @@ RimSummaryPlot::RimSummaryPlot()
CAF_PDM_InitField(&m_isAutoZoom_OBSOLETE, "AutoZoom", true, "Auto Zoom", "", "", "");
m_isAutoZoom_OBSOLETE.uiCapability()->setUiHidden(true);
m_isAutoZoom_OBSOLETE.xmlCapability()->setIOWritable(false);
setAsPlotMdiWindow();
m_isCrossPlot = false;

View File

@ -48,6 +48,8 @@ RimSummaryPlotCollection::~RimSummaryPlotCollection()
RimSummaryPlot* RimSummaryPlotCollection::createSummaryPlotWithAutoTitle()
{
RimSummaryPlot* plot = new RimSummaryPlot();
plot->setAsPlotMdiWindow();
plot->enableAutoPlotTitle(true);
summaryPlots.push_back(plot);
@ -60,6 +62,8 @@ RimSummaryPlot* RimSummaryPlotCollection::createSummaryPlotWithAutoTitle()
RimSummaryPlot* RimSummaryPlotCollection::createNamedSummaryPlot(const QString& name)
{
RimSummaryPlot* plot = new RimSummaryPlot();
plot->setAsPlotMdiWindow();
summaryPlots.push_back(plot);
plot->setDescription(name);