Skip to content

Commit

Permalink
fix #278194 Fix crash opening play panel
Browse files Browse the repository at this point in the history
No longer emitting event if value unchanged.
  • Loading branch information
blackears committed Nov 20, 2018
1 parent 6ba431b commit ac5bcd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion awl/aslider.cpp
Expand Up @@ -184,6 +184,8 @@ void AbstractSlider::mouseDoubleClickEvent(QMouseEvent* ev)

void AbstractSlider::setValue(double val)
{
double oldValue = _value;

if (_log) {
if (val == 0.0f)
_value = _minValue;
Expand All @@ -196,7 +198,9 @@ void AbstractSlider::setValue(double val)
else
_value = val;

emit valueChanged(val, __id);
if (oldValue != _value)
emit valueChanged(val, __id);

update();
}

Expand Down

0 comments on commit ac5bcd5

Please sign in to comment.