vcl/source/window/toolbox2.cxx | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit 16dd3d7e2eeff3a9a64865db69082b50afbf0ea1
Author: Szymon Kłos <[email protected]>
AuthorDate: Thu Mar 17 10:15:05 2022 +0100
Commit: Szymon Kłos <[email protected]>
CommitDate: Thu Mar 17 10:02:48 2022 +0100
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 <[email protected]>
Reviewed-by: Szymon Kłos <[email protected]>
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)
{