Related: tdf#124238 don't assert on closing new TipOfTheDayDialog

Change-Id: I17d8e47c6ebd8f4fcbb5613db640bb771b406a54
Reviewed-on: https://gerrit.libreoffice.org/70611
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 50201c3..71573f3 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1234,8 +1234,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
                    const sal_Int32 nDay = std::chrono::duration_cast<std::chrono::hours>(t0).count()/24; // days since 1970-01-01
                    if (nDay-nLastTipOfTheDay > 0) { //only once per day
                        VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create();
                        VclPtr<VclAbstractDialog> pDlg =
                            pFact->CreateTipOfTheDayDialog( GetWindow().GetFrameWeld() );
                        ScopedVclPtr<VclAbstractDialog> pDlg(
                            pFact->CreateTipOfTheDayDialog(GetWindow().GetFrameWeld()));
                        pDlg->Execute();
                    }
                }