summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx5
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;