Fix bug. Update details list after creating or deleting a detail.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-11-13 11:08:48 +02:00
parent 736d21d71c
commit 8e44628b57
2 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,8 @@ void AddPiece::undo()
DecrementReferences(m_detail.GetCustomSARecords());
DecrementReferences(m_detail.GetInternalPaths());
DecrementReferences(m_detail.GetPins());
emit doc->UpdateInLayoutList();
}
else
{
@ -128,6 +130,8 @@ void AddPiece::redo()
VMainGraphicsView::NewSceneRect(m_scene, qApp->getSceneView(), m_tool);
m_tool.clear();
}
emit doc->UpdateInLayoutList();
}
else
{

View File

@ -105,6 +105,7 @@ void DeletePiece::undo()
m_tool->show();
VMainGraphicsView::NewSceneRect(m_scene, qApp->getSceneView(), m_tool);
m_tool.clear();
emit doc->UpdateInLayoutList();
}
//---------------------------------------------------------------------------------------------------------------------
@ -132,6 +133,8 @@ void DeletePiece::redo()
DecrementReferences(m_detail.GetCustomSARecords());
DecrementReferences(m_detail.GetInternalPaths());
DecrementReferences(m_detail.GetPins());
emit doc->UpdateInLayoutList();
}
else
{