From dce9a6095d93362c6b67b72c274d0ba34b0f1f40 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Mon, 30 Dec 2019 08:19:42 -0800 Subject: [PATCH] Fixed crash when creating new submodel. --- common/lc_timelinewidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lc_timelinewidget.cpp b/common/lc_timelinewidget.cpp index d4d6b6fb..6a2b86d8 100644 --- a/common/lc_timelinewidget.cpp +++ b/common/lc_timelinewidget.cpp @@ -75,6 +75,7 @@ void lcTimelineWidget::Update(bool Clear, bool UpdateItems) if (!Model) { + mCurrentStepItem = nullptr; mItems.clear(); clear(); blockSignals(Blocked); @@ -83,6 +84,7 @@ void lcTimelineWidget::Update(bool Clear, bool UpdateItems) if (Clear) { + mCurrentStepItem = nullptr; mItems.clear(); clear(); }