[TD] handle deletions of hatches

- also uniform line endings in ViewProviderLeader.cpp
This commit is contained in:
donovaly
2020-03-07 18:33:16 +01:00
committed by WandererFan
parent 3307e4bf7a
commit c390d64df0
5 changed files with 22 additions and 9 deletions

View File

@@ -236,8 +236,8 @@ bool ViewProviderLeader::onDelete(const std::vector<std::string> &)
{
// a leader line cannot be deleted if it has a child weld symbol
// get childs
auto childs = claimChildren();
// get childs
auto childs = claimChildren();
if (!childs.empty()) {
QString bodyMessage;
@@ -258,7 +258,7 @@ bool ViewProviderLeader::canDelete(App::DocumentObject *obj) const
{
// deletions of Leader line objects don't destroy anything
// thus we can pass this action
// that the parent view cannot be deleted is handled
// that the parent view cannot be deleted is handled
// in its onDelete() function
Q_UNUSED(obj)
return true;