mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Guard creation of view widget in RimMultiPlotWindow
This commit is contained in:
parent
85d683634c
commit
bf6da1c6c4
@ -416,7 +416,10 @@ QImage RimMultiPlotWindow::snapshotWindowContent()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
QWidget* RimMultiPlotWindow::createViewWidget( QWidget* mainWindowParent )
|
QWidget* RimMultiPlotWindow::createViewWidget( QWidget* mainWindowParent )
|
||||||
{
|
{
|
||||||
m_viewer = new RiuMultiPlotWindow( this, mainWindowParent );
|
if ( m_viewer.isNull() )
|
||||||
|
{
|
||||||
|
m_viewer = new RiuMultiPlotWindow( this, mainWindowParent );
|
||||||
|
}
|
||||||
recreatePlotWidgets();
|
recreatePlotWidgets();
|
||||||
return m_viewer;
|
return m_viewer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user