[TD] handle deletions of hatches
- also uniform line endings in ViewProviderLeader.cpp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user