diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-03-10 16:46:37 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-06-23 12:47:42 +0200 |
commit | 9d5e36c216d01a2cc0b2aefa801bb96ddb6eb199 (patch) | |
tree | fa07f8bf548b43b652aff9206c0d3ef028ec0bbd /desktop | |
parent | 2eecf2b007a44c4e2ce2877af2c841875a70c282 (diff) |
jsdialog: use welding for button click event
Change-Id: I0320dfb5cdc4f936eddff003bda7d16bdd1c4667
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94342
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96913
Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index d97fa9cf243c..717e9d6a9d49 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3668,6 +3668,19 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned nWin bContinueWithLOKWindow = true; } } + else if (sControlType == "pushbutton") + { + auto pButton = dynamic_cast<weld::Button*>(pWidget); + if (pButton) + { + if (sAction == "click") + { + pButton->clicked(); + } + else + bContinueWithLOKWindow = true; + } + } else { bContinueWithLOKWindow = true; |