[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 5 17:17:30 UTC 2019


 sfx2/source/view/viewfrm.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 9be58fddb9c88d0fb058dcb7936a17c9d45d0237
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 5 14:49:59 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Oct 5 19:16:34 2019 +0200

    Resolves: tdf#127946 pass in argument for dialog parent
    
    Change-Id: If1e8339277cedf2577934246a568ecc869355a9e
    Reviewed-on: https://gerrit.libreoffice.org/80291
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 490bd3519831..90e79b29ff08 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1315,8 +1315,11 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
                 if (bShowTipOfTheDay && !Application::IsHeadlessModeEnabled() && !bIsUITest) {
                     const sal_Int32 nLastTipOfTheDay = officecfg::Office::Common::Misc::LastTipOfTheDayShown::get();
                     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
-                        GetDispatcher()->Execute(SID_TIPOFTHEDAY);
+                    if (nDay-nLastTipOfTheDay > 0) { //only once per day
+                        // tdf#127946 pass in argument for dialog parent
+                        SfxUnoFrameItem aDocFrame(SID_FILLFRAME, GetFrame().GetFrameInterface());
+                        GetDispatcher()->ExecuteList(SID_TIPOFTHEDAY, SfxCallMode::SLOT, {}, { &aDocFrame });
+                    }
                 } //bShowTipOfTheDay
 
                 // inform about the community involvement


More information about the Libreoffice-commits mailing list