summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-03-17 10:15:05 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-03-28 15:12:18 +0200
commita20e761cb1112357bfae35e24b49fae872bce3f6 (patch)
tree695a266bad52d24b3589b9949445adb5c6898087
parent15e359b4892736da9332de0350887531008c8ea3 (diff)
jsdialog: fix toolboxes with children
Don't block JSON generation if toolbox has children... Fixes missing sidebar items Change-Id: I34696d780b4292881792b2190a522610a8b4b597 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131696 Tested-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132201 Tested-by: Jenkins
-rw-r--r--vcl/source/window/toolbox2.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index f448a3492e2e..5a1112da5c6a 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1736,9 +1736,6 @@ void ToolBox::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
{
DockingWindow::DumpAsPropertyTree(rJsonWriter);
- if (GetChildCount())
- return;
-
auto childrenNode = rJsonWriter.startArray("children");
for (ToolBox::ImplToolItems::size_type i = 0; i < GetItemCount(); ++i)
{