[Libreoffice-commits] core.git: vcl/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 18 08:39:28 UTC 2021


 vcl/source/window/toolbox2.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2665fe320363d03559cd29e75b78077b4a78e91f
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Jul 14 12:00:25 2021 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Aug 18 10:38:53 2021 +0200

    jsdialog: dump selected state for toolitems
    
    Change-Id: I8c2c017168e4feae6e24118153906ee24ed90a5c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118893
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120615
    Tested-by: Jenkins

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index c3f53303e15a..5b3cb621a28a 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1755,6 +1755,8 @@ void ToolBox::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
                 rJsonWriter.put("type", "toolitem");
                 rJsonWriter.put("text", GetItemText(nId));
                 rJsonWriter.put("command", sCommand);
+                if (IsItemChecked(nId))
+                    rJsonWriter.put("selected", true);
                 if (!IsItemVisible(nId))
                     rJsonWriter.put("visible", false);
                 if (GetItemBits(nId) & ToolBoxItemBits::DROPDOWN)


More information about the Libreoffice-commits mailing list