Kaydet (Commit) a62eacac authored tarafından Caolán McNamara's avatar Caolán McNamara

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b240c12e
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment