summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2023-12-18 23:00:26 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2023-12-19 07:57:32 +0100
commitf8199c424412f56edb1c64fada27e0c94d34fe79 (patch)
tree6b3d6b12d7774668829ab026022b69e25837890a /configmgr
parentca046e50ff48b06d3ea12ded48c3420be0fff341 (diff)
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.bergmann@allotropia.de>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/access.cxx2
1 files changed, 1 insertions, 1 deletions
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
}