desktop/source/lib/init.cxx |   13 +++++++++++++
 1 file changed, 13 insertions(+)

New commits:
commit 73886f62f26ae26d4a0fe1687b31dfd0d7394c92
Author:     Szymon Kłos <[email protected]>
AuthorDate: Tue Mar 10 16:46:37 2020 +0100
Commit:     Szymon Kłos <[email protected]>
CommitDate: Wed May 20 14:30:53 2020 +0200

    jsdialog: use welding for button click event
    
    Change-Id: I0320dfb5cdc4f936eddff003bda7d16bdd1c4667
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94342
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Szymon Kłos <[email protected]>

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;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to