[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed May 19 10:03:53 UTC 2021


 vcl/unx/gtk3/gtkinst.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 90e645d4340b110f03dff78dbe35593946948cba
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed May 19 09:46:54 2021 +0100
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed May 19 12:03:16 2021 +0200

    tdf#142370 a null response callback should be acceptable
    
    commit 7f032b2f16fad56beea1df826eb59c6f85c71268
    Date:   Sat Apr 3 01:24:30 2021 -0500
    
        tdf#127533 Make Tip-of-the-Day dialog non-modal and allow multiple tips to open
    
    calls StartExecuteAsync(nullptr) so there is no callback function for
    the response which is a little unusual.
    
    The generic backend protects against a null callback hidden behind
    maEndCtx.isSet() before calling aEndCtx.maEndDialogFn() where isSet()
    checks for a null maEndDialogFn() so do the same for the gtk backend.
    
    Change-Id: Ib5346be37bfba035a00649ff7fb1d66532739721
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115786
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index dc3fa90f7dec..3d213d62a194 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -7961,7 +7961,8 @@ void GtkInstanceDialog::asyncresponse(gint ret)
     m_nCancelSignalId = 0;
     m_nSignalDeleteId = 0;
 
-    aFunc(GtkToVcl(ret));
+    if (aFunc)
+        aFunc(GtkToVcl(ret));
 
     if (nResponseSignalId)
         g_signal_handler_disconnect(m_pDialog, nResponseSignalId);


More information about the Libreoffice-commits mailing list