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