Skip to content

Commit

Permalink
Fix crash when users close plot windows, re #8091
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Oct 31, 2014
1 parent 8ffc5e7 commit c8877c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Code/Mantid/MantidPlot/src/Mantid/MantidUI.h
Expand Up @@ -541,11 +541,12 @@ private slots:
AlgorithmMonitor *m_algMonitor; // Class for monitoring running algorithms

// keep track of the last shown, which will be refreshed or killed/rebuilt if showing only one inst. window
InstrumentWindow *m_lastShownInstrumentWin;
MantidQt::SliceViewer::SliceViewerWindow *m_lastShownSliceViewWin;
MantidQt::SpectrumView::SpectrumView *m_lastShownSpectrumViewerWin;
MultiLayer *m_lastShownColorFillWin;
MultiLayer *m_lastShown1DPlotWin;
// QPointer handles when events, etc. destroy these windows
QPointer<InstrumentWindow> m_lastShownInstrumentWin;
QPointer<MantidQt::SliceViewer::SliceViewerWindow> m_lastShownSliceViewWin;
QPointer<MantidQt::SpectrumView::SpectrumView> m_lastShownSpectrumViewerWin;
QPointer<MultiLayer> m_lastShownColorFillWin;
QPointer<MultiLayer> m_lastShown1DPlotWin;

// Map of <workspace_name,update_interval> pairs. Positive update_intervals mean
// UpdateDAE must be launched after LoadDAE for this workspace
Expand Down

0 comments on commit c8877c9

Please sign in to comment.