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)
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue