mirror of
https://github.com/leozide/leocad
synced 2025-02-06 08:46:06 +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 (PieceItemIndex >= StepItem->childCount() || PieceItem != StepItem->child(PieceItemIndex))
|
||||||
{
|
{
|
||||||
if (PieceItem->parent() == StepItem)
|
QTreeWidgetItem* PieceParent = PieceItem->parent();
|
||||||
StepItem->removeChild(PieceItem);
|
|
||||||
|
if (PieceParent)
|
||||||
|
PieceParent->removeChild(PieceItem);
|
||||||
|
|
||||||
StepItem->insertChild(PieceItemIndex, PieceItem);
|
StepItem->insertChild(PieceItemIndex, PieceItem);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue