#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:
Magne Sjaastad
2023-06-06 09:20:29 +02:00
parent 3c526d888e
commit 14311dec3b
3 changed files with 15 additions and 1 deletions

View File

@@ -805,6 +805,8 @@ void RimMultiPlot::onLoadDataAndUpdate()
RiuPlotMainWindowTools::refreshToolbars();
m_showPlotLegends = originalShowState;
if ( m_viewer ) m_viewer->forcePerformUpdate();
}
//--------------------------------------------------------------------------------------------------