From ffec2d30559352c625dec10a5d04a57a17850a51 Mon Sep 17 00:00:00 2001 From: Kevin Martin Date: Thu, 6 Mar 2025 12:11:38 -0500 Subject: [PATCH] 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. --- src/App/PropertyStandard.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index 2618506f2d..9b3384b938 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -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