Skip to content

Commit

Permalink
Do not remove the element modifiers (#10191)
Browse files Browse the repository at this point in the history
Fixes #10148, fixes #10149
Since we only update the modified modifiers so there is no point in removing all existing modifiers
  • Loading branch information
adeas31 committed Feb 13, 2023
1 parent 847a7e5 commit 6b3eaf5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions OMEdit/OMEditLIB/Element/ElementProperties.cpp
Expand Up @@ -1874,8 +1874,6 @@ void ElementParameters::updateElementParameters()
}
// if valueChanged is true then put the change in the undo stack.
if (valueChanged) {
// remove all the modifiers of a component.
pOMCProxy->removeComponentModifiers(className, mpElement->getName());
// apply the new Component modifiers if any
QMap<QString, QString>::iterator newElementModifier;
for (newElementModifier = elementModifiersMap.begin(); newElementModifier != elementModifiersMap.end(); ++newElementModifier) {
Expand Down

0 comments on commit 6b3eaf5

Please sign in to comment.