mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Fixed crash when creating new submodel.
This commit is contained in:
parent
524e154caa
commit
dce9a6095d
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue