mirror of
https://github.com/leozide/leocad
synced 2025-01-28 19:58:12 +01:00
Fixed the timeline not updating correctly when using Show Earlier.
This commit is contained in:
parent
e3b5d9395d
commit
f5e9591be7
1 changed files with 4 additions and 2 deletions
|
@ -175,8 +175,10 @@ void lcTimelineWidget::Update(bool Clear)
|
|||
{
|
||||
if (PieceItemIndex >= StepItem->childCount() || PieceItem != StepItem->child(PieceItemIndex))
|
||||
{
|
||||
if (PieceItem->parent() == StepItem)
|
||||
StepItem->removeChild(PieceItem);
|
||||
QTreeWidgetItem* PieceParent = PieceItem->parent();
|
||||
|
||||
if (PieceParent)
|
||||
PieceParent->removeChild(PieceItem);
|
||||
|
||||
StepItem->insertChild(PieceItemIndex, PieceItem);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue