sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 77e2aba5a505762383b786c246754d51c9bcb1dc Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Jan 29 11:09:54 2019 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Tue Jan 29 19:28:43 2019 +0100 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.k...@collabora.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits