DocumentObject: Don't emit signal if Label hasn't actually changed.

This commit is contained in:
Eivind Kvedalen
2015-12-19 00:48:24 +01:00
committed by wmayer
parent 667e2548b0
commit 58727037ef

View File

@@ -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)