diff --git a/src/libs/vtools/undocommands/addpiece.cpp b/src/libs/vtools/undocommands/addpiece.cpp index e77255aaf..12ab177a9 100644 --- a/src/libs/vtools/undocommands/addpiece.cpp +++ b/src/libs/vtools/undocommands/addpiece.cpp @@ -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 { diff --git a/src/libs/vtools/undocommands/deletepiece.cpp b/src/libs/vtools/undocommands/deletepiece.cpp index 8a7a2d4d7..09e12bba3 100644 --- a/src/libs/vtools/undocommands/deletepiece.cpp +++ b/src/libs/vtools/undocommands/deletepiece.cpp @@ -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 {