[Libreoffice-commits] core.git: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 29 18:29:07 UTC 2019


 sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 77e2aba5a505762383b786c246754d51c9bcb1dc
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jan 29 11:09:54 2019 +0100
Commit:     Szymon Kłos <szymon.klos at 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.klos at 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;


More information about the Libreoffice-commits mailing list