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-05-20 14:30:53 +0200 |
commit | 73886f62f26ae26d4a0fe1687b31dfd0d7394c92 (patch) | |
tree | e6dedc56c30f353e6c644b26465342db3303a9ce | |
parent | ba8595407be6eb094448534e3ea93b6c22eac892 (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>
-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 b91240ad1b31..62ee41ce8b6b 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3671,6 +3671,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; |