diff options
author | Sarrah Bastawala <sarrah.basta@gmail.com> | 2022-03-21 17:46:14 +0530 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-03-22 13:41:43 +0100 |
commit | e0b281b17b974d20f98a61804377cfae07753016 (patch) | |
tree | 2fc5b169fa9c0e3e310c1d76f5a0856ccab56cc4 /cui/source | |
parent | 846c3ce7a2aa2a87399edb57ee858720ec837fb8 (diff) |
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.weghorn@posteo.de>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |