[Libreoffice-commits] core.git: desktop/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 23 10:48:20 UTC 2020


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

New commits:
commit 9d5e36c216d01a2cc0b2aefa801bb96ddb6eb199
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Mar 10 16:46:37 2020 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Jun 23 12:47:42 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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96913
    Tested-by: Jenkins

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;


More information about the Libreoffice-commits mailing list