Skip to content

Commit

Permalink
Base: [skip ci] Parameter Editor: Rename group creates new group
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 1, 2020
1 parent 40468da commit 6306dc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Base/Parameter.cpp
Expand Up @@ -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
Expand All @@ -897,7 +899,9 @@ void ParameterGrp::RemoveGrp(const char* Name)

DOMNode* node = _pGroupNode->removeChild(pcElem);
node->release();
#if 0
}
#endif

// trigger observer
Notify(Name);
Expand Down

0 comments on commit 6306dc0

Please sign in to comment.