Skip to content

Commit

Permalink
Only set the displayUnit if its really changed
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Sep 10, 2019
1 parent 7aa92c1 commit 7bcccd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEdit/OMEditGUI/Component/ComponentProperties.cpp
Expand Up @@ -1202,7 +1202,7 @@ void ComponentParameters::updateComponentParameters()
}
}
// if displayUnit is changed
if (pParameter->getDisplayUnit().compare(pParameter->getUnitComboBox()->currentText()) != 0) {
if (pParameter->getUnitComboBox()->isEnabled() && pParameter->getDisplayUnit().compare(pParameter->getUnitComboBox()->currentText()) != 0) {
valueChanged = true;
/* If the component is inherited then add the modifier value into the extends. */
if (mpComponent->isInheritedComponent()) {
Expand Down

0 comments on commit 7bcccd3

Please sign in to comment.