diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-01-19 09:16:06 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-01-19 15:56:56 +0100 |
commit | ba9704b24b382fefd35a66a5dbf81d05c1498cbd (patch) | |
tree | de908fe865b519ef390d4a6c1498356468e80361 | |
parent | 736f6906abe5cca474c256add07ba54e144cb8f1 (diff) |
jsdialog: dump radio groups
Change-Id: I64bb8c7c87a2d4f054c3f2c8e5ac28812230cf70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109609
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r-- | vcl/source/control/button.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index fecb052628b7..82862583a7aa 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -2886,6 +2886,15 @@ boost::property_tree::ptree RadioButton::DumpAsPropertyTree() { boost::property_tree::ptree aTree(Button::DumpAsPropertyTree()); aTree.put("checked", IsChecked()); + + OUString sGroupId; + std::vector<VclPtr<RadioButton>> aGroup = GetRadioButtonGroup(); + for(auto& pButton : aGroup) + sGroupId += pButton->get_id(); + + if (!sGroupId.isEmpty()) + aTree.put("group", sGroupId); + return aTree; } |