cui/source/dialogs/tipofthedaydlg.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 81051d1fccffddf3e16d92bef0d0853a65afc8b8
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Oct 6 10:31:54 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Oct 6 12:23:28 2022 +0200

    tdf#151352 crash closing form while the tip of the day dialog is displayed
    
    Change-Id: I61826ab4d8873f82f7885e26a22d307e2d574e17
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141001
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/cui/source/dialogs/tipofthedaydlg.cxx 
b/cui/source/dialogs/tipofthedaydlg.cxx
index 4fb8c81267a1..607a80616359 100644
--- a/cui/source/dialogs/tipofthedaydlg.cxx
+++ b/cui/source/dialogs/tipofthedaydlg.cxx
@@ -91,7 +91,10 @@ TipOfTheDayDialog::TipOfTheDayDialog(weld::Window* pParent)
 IMPL_LINK(TipOfTheDayDialog, Terminated, VclWindowEvent&, rEvent, void)
 {
     if (rEvent.GetId() == VclEventId::ObjectDying)
+    {
+        m_pParent = nullptr;
         TipOfTheDayDialog::response(RET_OK);
+    }
 }
 
 TipOfTheDayDialog::~TipOfTheDayDialog()

Reply via email to