diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-12-04 16:00:21 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-12-04 17:43:34 +0100 |
commit | 1597968f5cd2534fb6e0be40fafecc305a004f4e (patch) | |
tree | 20f8e0350c6f56d0ec5b3fb52e1f6ef0657f22ef /cui | |
parent | 274e078a6e94e477b594839355cc709829d921dd (diff) |
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.mehrbrodt@allotropia.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |