cui/source/options/optaboutconfig.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 1597968f5cd2534fb6e0be40fafecc305a004f4e Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Mon Dec 4 16:00:21 2023 +0100 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Mon Dec 4 17:43:34 2023 +0100 tdf#155676 Properly support editing string lists Change-Id: I721e30aca03ddadd3a08e092e75accbd279bbec5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160315 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index b5d218ecadad..ea63035471ca 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -866,7 +866,12 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, weld::Button&, void) else if (sPropertyType == "string-list") { SvxListDialog aListDialog(m_xDialog.get()); - aListDialog.SetEntries(commaStringToSequence(sDialogValue)); + Reference<XNameAccess> xConfigAccess + = getConfigAccess(pUserData->sPropertyPath, false); + Any aNode = xConfigAccess->getByName(sPropertyName); + uno::Sequence<OUString> aList = aNode.get<uno::Sequence<OUString>>(); + aListDialog.SetEntries( + comphelper::sequenceToContainer<std::vector<OUString>>(aList)); aListDialog.SetMode(ListMode::String); if (aListDialog.run() == RET_OK) {