cui/source/dialogs/tipofthedaydlg.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 8bc82b41a97461a6b03e7a678f563b5ad3b4d79d Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Oct 6 10:31:54 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Oct 6 16:38:19 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> (cherry picked from commit 81051d1fccffddf3e16d92bef0d0853a65afc8b8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140968 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/cui/source/dialogs/tipofthedaydlg.cxx b/cui/source/dialogs/tipofthedaydlg.cxx index 8e609122de50..2c35c3b4c686 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()