diff options
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, |