DocumentObject: Don't emit signal if Label hasn't actually changed.
This commit is contained in:
parent
19fd2c3195
commit
83d221e161
|
@ -206,7 +206,7 @@ void DocumentObject::onChanged(const Property* prop)
|
|||
if (_pDoc)
|
||||
_pDoc->onChangedProperty(this,prop);
|
||||
|
||||
if (prop == &Label && _pDoc)
|
||||
if (prop == &Label && _pDoc && oldLabel != Label.getStrValue())
|
||||
_pDoc->signalRelabelObject(*this);
|
||||
|
||||
if (prop->getType() & Prop_Output)
|
||||
|
|
Loading…
Reference in New Issue
Block a user