Commit a3f6183f authored by LE BRETON Come's avatar LE BRETON Come
Browse files

Touch only if the value changes.

parent 24d0866e
Pipeline #139035 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