Skip to content
Snippets Groups Projects
Commit 6ccb3f16 authored by XenHat's avatar XenHat Committed by Rye Mutt
Browse files

Fixed: Resetting unchanged settings values trigger changed event anyway

parent a52cbaea
No related branches found
No related tags found
No related merge requests found
...@@ -315,7 +315,10 @@ void LLControlVariable::resetToDefault(bool fire_signal) ...@@ -315,7 +315,10 @@ void LLControlVariable::resetToDefault(bool fire_signal)
mValues.pop_back(); 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); firePropertyChanged(originalValue);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment