Commit f7f5c318 authored by Alexander Wiebel's avatar Alexander Wiebel

[FIX #496] fixed repeated spurios update of slider

parent d5cfdfdd
......@@ -108,7 +108,7 @@ double WPropertyDoubleWidget::fromPercent( int perc )
void WPropertyDoubleWidget::sliderChanged( int value )
{
if ( !m_slider.isHidden() )
if ( !m_slider.isHidden() && toPercent( m_doubleProperty->get() ) != value )
{
// set to the property
invalidate( !m_doubleProperty->set( fromPercent( value ) ) ); // NOTE: set automatically checks the validity of the value
......
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