configmgr/source/access.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f0601f55e04fd6fc29af4783404e57574732aae7 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Mon Dec 18 23:00:26 2023 +0100 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Tue Dec 19 10:46:41 2023 +0100 tdf#158593 Make configmgr READONLY Property more useful ...to reflect whether or not the corresponding item can be modified. Which matches what the READONLY flag is actually used for today. (And the original, somewhat arbitrary semantics had been assigned without much thought, IIRC, and it should be OK to change them.) Change-Id: I8185e47519a5cb4aff6e8f260326845276b0c092 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160957 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de> (cherry picked from commit f8199c424412f56edb1c64fada27e0c94d34fe79) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160938 diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 3075bc0a32f6..1e2d73dafe9c 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -2209,7 +2209,7 @@ css::beans::Property Access::asProperty() { (nillable ? css::beans::PropertyAttribute::MAYBEVOID : 0) | (getRootAccess()->isUpdate() && removable ? css::beans::PropertyAttribute::REMOVABLE : 0) | - (!getRootAccess()->isUpdate() || p->getFinalized() != Data::NO_LAYER + (!getRootAccess()->isUpdate() || isFinalized() ? css::beans::PropertyAttribute::READONLY : 0))); //TODO: MAYBEDEFAULT }