summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-12-10 18:47:29 +0100
committerAndras Timar <andras.timar@collabora.com>2022-02-14 11:25:41 +0100
commit58a1c08be5aac03effa9c67ab11c014c5044dcad (patch)
tree5df5ecb2bbf1a5dd6c68d2c88992781c55cb4283 /vcl
parenta33984c0b1bdee5efc4033463bcb64c5b3750015 (diff)
jsdialog: send default button state
Change-Id: Ida7e9ce598d1fe45e793184ced7f5874e6956e84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126648 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mert Tumer <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127733 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 2eae233d5c7c..e6e731f79ee5 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -593,6 +593,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 )