Skip to content
Snippets Groups Projects

Fixed: Resetting unchanged settings values trigger changed event anyway

Merged Ghost User requested to merge xenhat-misc-fixes into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -315,7 +315,10 @@ void LLControlVariable::resetToDefault(bool fire_signal)
mValues.pop_back();
}
if(fire_signal)
// don't fire if the value didn't actually change
LLSD previous_value = getComparableValue(getValue());
bool value_changed = (llsd_compare(originalValue, previous_value) == FALSE);
if(fire_signal && value_changed)
{
firePropertyChanged(originalValue);
}
Loading