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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 6 21:14:35 UTC 2020


 cui/source/tabpages/autocdlg.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 35eb9708b0c8c90e37a042f387300342cae2af06
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Nov 6 16:50:38 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Nov 6 22:13:36 2020 +0100

    Related: tdf#138030 'activate' shouldn't add to the list...
    
    if the matching button is disabled
    
    Change-Id: Ia6e66c1f3e2e08086ae7ce968d61cb230becc639
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105418
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 211b131f3f9c..0ff5fcae4a4d 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -1457,7 +1457,7 @@ IMPL_LINK(OfaAutocorrExceptPage, NewDelActionHdl, weld::Entry&, rEdit, bool)
 void OfaAutocorrExceptPage::NewDelHdl(const weld::Widget* pBtn)
 {
     if ((pBtn == m_xNewAbbrevPB.get() || pBtn == m_xAbbrevED.get())
-        && !m_xAbbrevED->get_text().isEmpty())
+        && !m_xAbbrevED->get_text().isEmpty() && m_xNewAbbrevPB->get_sensitive())
     {
         m_xAbbrevLB->append_text(m_xAbbrevED->get_text());
         ModifyHdl(*m_xAbbrevED);
@@ -1468,7 +1468,7 @@ void OfaAutocorrExceptPage::NewDelHdl(const weld::Widget* pBtn)
         ModifyHdl(*m_xAbbrevED);
     }
     else if((pBtn == m_xNewDoublePB.get() || pBtn == m_xDoubleCapsED.get() )
-            && !m_xDoubleCapsED->get_text().isEmpty())
+            && !m_xDoubleCapsED->get_text().isEmpty() && m_xNewDoublePB->get_sensitive())
     {
         m_xDoubleCapsLB->append_text(m_xDoubleCapsED->get_text());
         ModifyHdl(*m_xDoubleCapsED);


More information about the Libreoffice-commits mailing list