Base: [skip ci] Parameter Editor: Rename group creates new group

This commit is contained in:
wmayer
2020-05-01 20:08:43 +02:00
parent f317f900ce
commit 70f9ab83ad

View File

@@ -882,10 +882,12 @@ void ParameterGrp::RemoveGrp(const char* Name)
// if this or any of its children is referenced by an observer
// it cannot be deleted
#if 0
if (!it->second->ShouldRemove()) {
it->second->Clear();
}
else {
#endif
// check if Element in group
DOMElement *pcElem = FindElement(_pGroupNode,"FCParamGroup",Name);
// if not return
@@ -897,7 +899,9 @@ void ParameterGrp::RemoveGrp(const char* Name)
DOMNode* node = _pGroupNode->removeChild(pcElem);
node->release();
#if 0
}
#endif
// trigger observer
Notify(Name);