Fixed crash when creating new submodel.

This commit is contained in:
Leonardo Zide 2019-12-30 08:19:42 -08:00
parent 524e154caa
commit dce9a6095d

View file

@ -75,6 +75,7 @@ void lcTimelineWidget::Update(bool Clear, bool UpdateItems)
if (!Model) if (!Model)
{ {
mCurrentStepItem = nullptr;
mItems.clear(); mItems.clear();
clear(); clear();
blockSignals(Blocked); blockSignals(Blocked);
@ -83,6 +84,7 @@ void lcTimelineWidget::Update(bool Clear, bool UpdateItems)
if (Clear) if (Clear)
{ {
mCurrentStepItem = nullptr;
mItems.clear(); mItems.clear();
clear(); clear();
} }