mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05: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.