From b48a2741477e4dbc79760c592c8263f34dff1e9d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 19 Feb 2019 09:27:01 +0000 Subject: set parent for chinese dictionary dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I29fce67b32a5c632eb12210f707f13b995bd58d3 Reviewed-on: https://gerrit.libreoffice.org/68007 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/uiview/viewling.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index c29c1637ab87..7d6aac2913d9 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -128,10 +128,13 @@ void SwView::ExecLingu(SfxRequest &rReq) Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY ); if( xInit.is() ) { + Reference xParentWindow; + if (weld::Window* pParentWindow = rReq.GetFrameWeld()) + xParentWindow = pParentWindow->GetXWindow(); // initialize dialog uno::Sequence aSeq(comphelper::InitAnyPropertySequence( { - {"ParentWindow", uno::Any(Reference< awt::XWindow >())} + {"ParentWindow", uno::Any(xParentWindow)} })); xInit->initialize( aSeq ); -- cgit