summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-10-06 10:31:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-06 12:23:28 +0200
commit81051d1fccffddf3e16d92bef0d0853a65afc8b8 (patch)
tree7a1ad056d10d4c6fe2aecc74a99a23984f39f8fc /cui
parent658946e0353c2fad5e26bb75f851744da4b7751f (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/tipofthedaydlg.cxx3
1 files changed, 3 insertions, 0 deletions
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()