From 49f987f79c869ba32b9a151f2a63845f0fdb8ca5 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Wed, 20 Sep 2023 10:19:45 +0200 Subject: [PATCH] Utils: Update gui when setting default value Allows the undoable to receive the right value Change-Id: I77f1bc0d76ca2c5fc2268cacfa7e42ce5787bd92 Reviewed-by: hjk --- src/libs/utils/aspects.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/aspects.h b/src/libs/utils/aspects.h index 46bea69bad1..c817ec34b48 100644 --- a/src/libs/utils/aspects.h +++ b/src/libs/utils/aspects.h @@ -296,7 +296,8 @@ public: { m_default = value; m_internal = value; - internalToBuffer(); // Might be more than a plain copy. + if (internalToBuffer()) // Might be more than a plain copy. + bufferToGui(); } bool isDefaultValue() const override