Commit 8848fe19 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

Merge branch '62-emitting-value-changed-when-value-doesn-t-change-is-not-a-goo-idea' into 'develop'

Resolve "Emitting value changed when value doesn't change is not a goo idea"

Closes #62

See merge request !64
parents 24d0866e a3f6183f
Pipeline #139048 passed with stage
in 0 seconds
......@@ -50,8 +50,11 @@ public:
void dtkWidgetsSpinBoxDoublePrivate::update(void)
{
this->value = valueFromText( q->text());
this->touch();
double new_value = valueFromText( q->text());
if(new_value != this->value) {
this->value = new_value;
this->touch();
}
}
void dtkWidgetsSpinBoxDoublePrivate::touch()
......
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