mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3209 Make sure project tree is initialised when creating the plot window.
* Also ensure the main plot window is created before attempting to set a brand new plot as an MDI window. * This ensures the MDI view controller has been created, otherwise the new plot MDI window will not be shown in the main plot window when the main plot window is created.
This commit is contained in:
parent
2664663d17
commit
1e77c9308a
@ -1355,6 +1355,8 @@ RiuPlotMainWindow* RiaApplication::getOrCreateMainPlotWindow()
|
||||
if (!m_mainPlotWindow)
|
||||
{
|
||||
createMainPlotWindow();
|
||||
m_mainPlotWindow->initializeGuiNewProjectLoaded();
|
||||
loadAndUpdatePlotData();
|
||||
}
|
||||
return m_mainPlotWindow;
|
||||
}
|
||||
|
@ -39,14 +39,14 @@ RimWellLogPlot* RicNewWellLogPlotFeatureImpl::createWellLogPlot(bool showAfterCr
|
||||
RimWellLogPlotCollection* wellLogPlotColl = wellLogPlotCollection();
|
||||
CVF_ASSERT(wellLogPlotColl);
|
||||
|
||||
// Make sure the summary plot window is created
|
||||
RiaApplication::instance()->getOrCreateMainPlotWindow();
|
||||
|
||||
RimWellLogPlot* plot = new RimWellLogPlot();
|
||||
plot->setAsPlotMdiWindow();
|
||||
|
||||
wellLogPlotColl->wellLogPlots().push_back(plot);
|
||||
|
||||
// Make sure the summary plot window is created
|
||||
RiaApplication::instance()->getOrCreateMainPlotWindow();
|
||||
|
||||
if (!plotDescription.isEmpty())
|
||||
{
|
||||
plot->setDescription(plotDescription);
|
||||
|
Loading…
Reference in New Issue
Block a user