mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2406 delete plot crash. Guard pointer to view
This commit is contained in:
@@ -426,7 +426,7 @@ void RiuMainPlotWindow::addToTemporaryWidgets(QWidget* widget)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainPlotWindow::updateSummaryPlotToolBar()
|
||||
{
|
||||
RimSummaryPlot* summaryPlot = dynamic_cast<RimSummaryPlot*>(m_activePlotViewWindow);
|
||||
RimSummaryPlot* summaryPlot = dynamic_cast<RimSummaryPlot*>(m_activePlotViewWindow.p());
|
||||
if (summaryPlot)
|
||||
{
|
||||
std::vector<caf::PdmFieldHandle*> toolBarFields;
|
||||
|
||||
Reference in New Issue
Block a user