mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-20 21:09:46 -06:00
Detach m_qwtPlotCurveForLegendText before the viewer check so it is always detached before deletion. Add null check for curves in detachPlotCurves, and explicitly call detachPlotCurves from RimWellLogTrack::detachAllPlotItems to ensure curves are detached before the track is destroyed.