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

set parent for chinese dictionary dialog

Change-Id: I29fce67b32a5c632eb12210f707f13b995bd58d3
Reviewed-on: https://gerrit.libreoffice.org/68007
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e51cc9eb
...@@ -128,10 +128,13 @@ void SwView::ExecLingu(SfxRequest &rReq) ...@@ -128,10 +128,13 @@ void SwView::ExecLingu(SfxRequest &rReq)
Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY ); Reference< lang::XInitialization > xInit( xDialog, UNO_QUERY );
if( xInit.is() ) if( xInit.is() )
{ {
Reference<awt::XWindow> xParentWindow;
if (weld::Window* pParentWindow = rReq.GetFrameWeld())
xParentWindow = pParentWindow->GetXWindow();
// initialize dialog // initialize dialog
uno::Sequence<uno::Any> aSeq(comphelper::InitAnyPropertySequence( uno::Sequence<uno::Any> aSeq(comphelper::InitAnyPropertySequence(
{ {
{"ParentWindow", uno::Any(Reference< awt::XWindow >())} {"ParentWindow", uno::Any(xParentWindow)}
})); }));
xInit->initialize( aSeq ); xInit->initialize( aSeq );
......
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