Commit b697e5e9 authored by David Thompson's avatar David Thompson

Do not accidentally mark attributes modified on load.

parent 9a0400f5
......@@ -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