vcl/source/control/button.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 38aa84d87246a4758764d3e2f08cd4c66a190bcf
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Fri Dec 10 18:47:29 2021 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Tue Dec 14 14:03:37 2021 +0100

    jsdialog: send default button state
    
    Change-Id: Ida7e9ce598d1fe45e793184ced7f5874e6956e84
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126648
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Mert Tumer <mert.tu...@collabora.com>

diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index b6d97bdff604..1a9133d0228a 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -571,6 +571,9 @@ void Button::DumpAsPropertyTree(tools::JsonWriter& 
rJsonWriter)
             rJsonWriter.put("image", aBuffer.makeStringAndClear());
         }
     }
+
+    if (GetStyle() & WB_DEFBUTTON)
+        rJsonWriter.put("has_default", true);
 }
 
 IMPL_STATIC_LINK( Button, dispatchCommandHandler, Button*, pButton, void )

Reply via email to