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:
parent
64731fb242
commit
3a1c6406ff
@ -422,7 +422,7 @@ void RiuMainPlotWindow::addToTemporaryWidgets(QWidget* widget)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuMainPlotWindow::updateSummaryPlotToolBar()
|
void RiuMainPlotWindow::updateSummaryPlotToolBar()
|
||||||
{
|
{
|
||||||
RimSummaryPlot* summaryPlot = dynamic_cast<RimSummaryPlot*>(m_activePlotViewWindow);
|
RimSummaryPlot* summaryPlot = dynamic_cast<RimSummaryPlot*>(m_activePlotViewWindow.p());
|
||||||
if (summaryPlot)
|
if (summaryPlot)
|
||||||
{
|
{
|
||||||
std::vector<caf::PdmFieldHandle*> toolBarFields;
|
std::vector<caf::PdmFieldHandle*> toolBarFields;
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "RiuMainWindowBase.h"
|
#include "RiuMainWindowBase.h"
|
||||||
|
|
||||||
#include "cafPdmUiDragDropInterface.h"
|
#include "cafPdmUiDragDropInterface.h"
|
||||||
|
#include "cafPdmPointer.h"
|
||||||
|
|
||||||
#include <QMdiArea>
|
#include <QMdiArea>
|
||||||
|
|
||||||
@ -116,7 +117,7 @@ private:
|
|||||||
QByteArray m_initialDockAndToolbarLayout; // Initial dock window and toolbar layout, used to reset GUI
|
QByteArray m_initialDockAndToolbarLayout; // Initial dock window and toolbar layout, used to reset GUI
|
||||||
|
|
||||||
QMdiArea* m_mdiArea;
|
QMdiArea* m_mdiArea;
|
||||||
RimViewWindow* m_activePlotViewWindow;
|
caf::PdmPointer<RimViewWindow> m_activePlotViewWindow;
|
||||||
|
|
||||||
QMenu* m_windowMenu;
|
QMenu* m_windowMenu;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user