mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10349 Avoid calling performUpdate() in showEvent()
When a dock widget in a dock widget tab group is activated, a show event is triggered in IumMultiPlotBook::showEvent. This causes a crash if performUpdate is called in showEvent. Make sure the performUpdate is called from RimMultiPlot::onLoadDataAndUpdate()
This commit is contained in:
@@ -805,6 +805,8 @@ void RimMultiPlot::onLoadDataAndUpdate()
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
|
||||
m_showPlotLegends = originalShowState;
|
||||
|
||||
if ( m_viewer ) m_viewer->forcePerformUpdate();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user