mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5171 Fix legend updates by getting rid of the show/hideEvent crash fix
* The crash is instead fixed by getting rid of deleteLater()
This commit is contained in:
@@ -71,7 +71,9 @@ RimTofAccumulatedPhaseFractionsPlot::~RimTofAccumulatedPhaseFractionsPlot()
|
||||
|
||||
if ( m_tofAccumulatedPhaseFractionsPlotWidget )
|
||||
{
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget->deleteLater();
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget->hide();
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget->setParent( nullptr );
|
||||
delete m_tofAccumulatedPhaseFractionsPlotWidget;
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget = nullptr;
|
||||
}
|
||||
}
|
||||
@@ -91,7 +93,9 @@ void RimTofAccumulatedPhaseFractionsPlot::deleteViewWidget()
|
||||
{
|
||||
if ( m_tofAccumulatedPhaseFractionsPlotWidget )
|
||||
{
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget->deleteLater();
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget->hide();
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget->setParent( nullptr );
|
||||
delete m_tofAccumulatedPhaseFractionsPlotWidget;
|
||||
m_tofAccumulatedPhaseFractionsPlotWidget = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user