Gui: fix crash on deletion if Undo/Redo is disabled
This commit is contained in:
@@ -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() << "')");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user