Correct Issue 19980 for the 1.0 tree

Make no Change notification if an object's Label, after making it Unique and letting OnBeforeChangeLabel alter it, ends up equal to its current value.
This commit is contained in:
Kevin Martin
2025-03-18 15:49:44 -03:00
committed by Adrián Insaurralde Avalos
parent 865652822a
commit ffec2d3055
+4
View File
@@ -1389,6 +1389,10 @@ void PropertyString::setValue(const char* newLabel)
obj->onBeforeChangeLabel(label);
newLabel = label.c_str();
if (newLabel == _cValue) {
return;
}
if(!obj->getDocument()->testStatus(App::Document::Restoring)) {
// Only update label reference if we are not restoring. When
// importing (which also counts as restoring), it is possible the