From 77e2aba5a505762383b786c246754d51c9bcb1dc Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 29 Jan 2019 11:09:54 +0100 Subject: Grab fous from child in spell dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8c21623f7148ab2c05fe3d4198cf12231600f88d Reviewed-on: https://gerrit.libreoffice.org/67077 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sw') 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 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; -- cgit