diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index b6e31306ed..cd7de66d52 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -1413,8 +1413,8 @@ void StdCmdDelete::activated(int iMsg) if (vp) { // ask the ViewProvider if it wants to do some clean up if (vp->onDelete(sel.getSubNames())) { - FCMD_OBJ_DOC_CMD(obj,"removeObject('" << obj->getNameInDocument() << "')"); docs.insert(obj->getDocument()); + FCMD_OBJ_DOC_CMD(obj,"removeObject('" << obj->getNameInDocument() << "')"); } } }