Fix bug. Update details list after creating or deleting a detail.
--HG-- branch : develop
This commit is contained in:
parent
736d21d71c
commit
8e44628b57
|
@ -89,6 +89,8 @@ void AddPiece::undo()
|
||||||
DecrementReferences(m_detail.GetCustomSARecords());
|
DecrementReferences(m_detail.GetCustomSARecords());
|
||||||
DecrementReferences(m_detail.GetInternalPaths());
|
DecrementReferences(m_detail.GetInternalPaths());
|
||||||
DecrementReferences(m_detail.GetPins());
|
DecrementReferences(m_detail.GetPins());
|
||||||
|
|
||||||
|
emit doc->UpdateInLayoutList();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -128,6 +130,8 @@ void AddPiece::redo()
|
||||||
VMainGraphicsView::NewSceneRect(m_scene, qApp->getSceneView(), m_tool);
|
VMainGraphicsView::NewSceneRect(m_scene, qApp->getSceneView(), m_tool);
|
||||||
m_tool.clear();
|
m_tool.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit doc->UpdateInLayoutList();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,6 +105,7 @@ void DeletePiece::undo()
|
||||||
m_tool->show();
|
m_tool->show();
|
||||||
VMainGraphicsView::NewSceneRect(m_scene, qApp->getSceneView(), m_tool);
|
VMainGraphicsView::NewSceneRect(m_scene, qApp->getSceneView(), m_tool);
|
||||||
m_tool.clear();
|
m_tool.clear();
|
||||||
|
emit doc->UpdateInLayoutList();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -132,6 +133,8 @@ void DeletePiece::redo()
|
||||||
DecrementReferences(m_detail.GetCustomSARecords());
|
DecrementReferences(m_detail.GetCustomSARecords());
|
||||||
DecrementReferences(m_detail.GetInternalPaths());
|
DecrementReferences(m_detail.GetInternalPaths());
|
||||||
DecrementReferences(m_detail.GetPins());
|
DecrementReferences(m_detail.GetPins());
|
||||||
|
|
||||||
|
emit doc->UpdateInLayoutList();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user