cui/source/dialogs/SpellDialog.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit e0b281b17b974d20f98a61804377cfae07753016
Author:     Sarrah Bastawala <sarrah.ba...@gmail.com>
AuthorDate: Mon Mar 21 17:46:14 2022 +0530
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Mar 22 13:41:43 2022 +0100

    tdf#135234 : Change initial focus of SpellDialog
    
    Change-Id: Ic316a8d99ad12a51a79b2e2680aa5cec5eac5c4e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131182
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/cui/source/dialogs/SpellDialog.cxx 
b/cui/source/dialogs/SpellDialog.cxx
index 0317ce370794..69cd05462fdf 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -395,7 +395,9 @@ IMPL_LINK_NOARG( SpellDialog, InitHdl, void*, void)
     InitUserDicts();
 
     LockFocusChanges(true);
-    if( m_xChangePB->get_sensitive() )
+    if(m_xSentenceED->IsEnabled())
+        m_xSentenceED->GrabFocus();
+    else if( m_xChangePB->get_sensitive() )
         m_xChangePB->grab_focus();
     else if( m_xIgnorePB->get_sensitive() )
         m_xIgnorePB->grab_focus();

Reply via email to