diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-01-29 11:09:54 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2019-01-29 19:28:43 +0100 |
commit | 77e2aba5a505762383b786c246754d51c9bcb1dc (patch) | |
tree | 8f727b5f6a7a821a9d54684e8da7eda65795d953 /sw/source/uibase | |
parent | 22aa6508e0a65e65a6f9410b498fe4fd6c236639 (diff) |
Grab fous from child in spell dialog
Change-Id: I8c21623f7148ab2c05fe3d4198cf12231600f88d
Reviewed-on: https://gerrit.libreoffice.org/67077
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx index 0f6725fc64e8..5dd83f837ea8 100644 --- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx +++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx @@ -410,9 +410,10 @@ The code below would only be part of the solution. { LockFocusNotification( true ); OUString sInfo( SwResId( STR_SPELLING_COMPLETED ) ); + vcl::Window* pThisWindow = GetWindow(); // #i84610# std::unique_ptr<weld::MessageDialog> xBox( - Application::CreateMessageDialog( GetWindow()->GetFrameWeld(), + Application::CreateMessageDialog( pThisWindow->GetFrameWeld(), VclMessageType::Info, VclButtonsType::Ok, sInfo ) ); @@ -420,6 +421,8 @@ The code below would only be part of the solution. LockFocusNotification( false ); // take care that the now valid selection is stored LoseFocus(); + if( pThisWindow ) + pThisWindow->GrabFocus(); } } return aRet; |