Commit a6553206 authored by David Thompson's avatar David Thompson Committed by Kitware Robot

Merge topic 'eliminate-bad-modification'

b697e5e9 Do not accidentally mark attributes modified on load.
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Bob Obara's avatarBob Obara <>
Merge-request: !1496
parents 285e86bc b697e5e9
Pipeline #132159 running with stage
......@@ -192,7 +192,8 @@ void qtInputsItem::unsetValue(int elementIndex)
bool qtInputsItem::setDiscreteValue(int elementIndex, int discreteValIndex)
auto item = m_itemInfo.itemAs<ValueItem>();
if (item->setDiscreteIndex(elementIndex, discreteValIndex))
auto oldIndex = item->discreteIndex(elementIndex);
if (oldIndex != discreteValIndex && item->setDiscreteIndex(elementIndex, discreteValIndex))
emit this->modified();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment