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:
@@ -145,7 +145,9 @@ RimWellAllocationPlot::~RimWellAllocationPlot()
|
||||
|
||||
if ( m_wellAllocationPlotWidget )
|
||||
{
|
||||
m_wellAllocationPlotWidget->deleteLater();
|
||||
m_wellAllocationPlotWidget->hide();
|
||||
m_wellAllocationPlotWidget->setParent( nullptr );
|
||||
delete m_wellAllocationPlotWidget;
|
||||
m_wellAllocationPlotWidget = nullptr;
|
||||
}
|
||||
}
|
||||
@@ -183,7 +185,9 @@ void RimWellAllocationPlot::deleteViewWidget()
|
||||
{
|
||||
if ( m_wellAllocationPlotWidget )
|
||||
{
|
||||
m_wellAllocationPlotWidget->deleteLater();
|
||||
m_wellAllocationPlotWidget->hide();
|
||||
m_wellAllocationPlotWidget->setParent( nullptr );
|
||||
delete m_wellAllocationPlotWidget;
|
||||
m_wellAllocationPlotWidget = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user