diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-15 21:15:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-11-16 12:19:53 +0100 |
commit | 502f7958d99e3aa27f4c1c1f33f4827055459da8 (patch) | |
tree | f214ce01cc2ea96b79915231c210c8fcd4df92a2 /sw/source | |
parent | 0df175ccc6ea542bc5801f631ff72bed187042eb (diff) |
pass a frame to use as parent for any dialog that may need to appear
which avoids: sfx2/source/appl/appserv.cxx:314: no parent for dialogs
Change-Id: I71734b42f3206fc724e5a3d5538072dc775f0b68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159490
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index 6f7d1a2ee232..d2451442c600 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -615,17 +615,18 @@ void LoadURL(SwView& rView, const OUString& rURL, LoadUrlFlags nFilter, if ((nFilter & LoadUrlFlags::NewView) && !comphelper::LibreOfficeKit::isActive()) aTargetFrameName.SetValue( "_blank" ); - const SfxPoolItem* aArr[] = { + SfxUnoFrameItem aDocFrame(SID_FILLFRAME, rViewFrame.GetFrame().GetFrameInterface()); + + rViewFrame.GetDispatcher()->ExecuteList(SID_OPENDOC, + SfxCallMode::ASYNCHRON|SfxCallMode::RECORD, + { &aName, &aNewView, /*&aSilent,*/ &aReferer, &aView, &aTargetFrameName, - &aBrowse, - nullptr - }; - - rViewFrame.GetDispatcher()->GetBindings()->Execute( SID_OPENDOC, aArr, - SfxCallMode::ASYNCHRON|SfxCallMode::RECORD ); + &aBrowse + }, + { &aDocFrame } ); } void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk, |