vcl/jsdialog/enabled.cxx | 1 + vcl/source/edit/vclmedit.cxx | 2 ++ 2 files changed, 3 insertions(+)
New commits: commit 1964087d97d264db038fb9cbe7b3ef6f19a72cf1 Author: Andras Timar <[email protected]> AuthorDate: Sun Feb 15 13:38:29 2026 +0100 Commit: Andras Timar <[email protected]> CommitDate: Sun Feb 15 19:51:56 2026 +0100 jsdialog: fix View Certificate dialog Details tab and read-only TextViews The Details tab of the View Certificate dialog was non-interactive: selecting different fields didn't update the value edit box below. Root cause: xmlsec/ui/certdetails.ui was missing from the JSDialog enabled list, so its widgets were plain SalInstance types instead of JSWidgets, meaning no callbacks or updates reached the browser. Additionally, read-only multiline edit fields (on both the Details and Certificate Path tabs) were rendered as writable textareas. VclMultiLineEdit::DumpAsPropertyTree only output the "cursor" property (from IsCursorEnabled) but not the read-only state. Since SetReadOnly doesn't affect IsCursorEnabled, the browser never knew the field should be non-editable. Now DumpAsPropertyTree also outputs "readonly": true when the edit is read-only. Change-Id: If7349234ad6def7ab714da3957ea6654b7b8141b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199404 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Andras Timar <[email protected]> diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx index 6bb4e9546ce9..fc5941860c1c 100644 --- a/vcl/jsdialog/enabled.cxx +++ b/vcl/jsdialog/enabled.cxx @@ -372,6 +372,7 @@ constexpr auto OtherDialogList { u"writerperfect/ui/exportepub.ui" }, { u"writerperfect/ui/wpftencodingdialog.ui" }, // xmlsec + { u"xmlsec/ui/certdetails.ui" }, { u"xmlsec/ui/certgeneral.ui" }, { u"xmlsec/ui/certpage.ui" }, { u"xmlsec/ui/digitalsignaturesdialog.ui" }, diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx index 7475b7770d70..6a8375425dc4 100644 --- a/vcl/source/edit/vclmedit.cxx +++ b/vcl/source/edit/vclmedit.cxx @@ -1507,6 +1507,8 @@ void VclMultiLineEdit::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) Edit::DumpAsPropertyTree(rJsonWriter); rJsonWriter.put("cursor", pImpVclMEdit->GetTextWindow()->GetTextView()->IsCursorEnabled()); + if (IsReadOnly()) + rJsonWriter.put("readonly", true); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
