summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-06 16:50:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-06 22:13:36 +0100
commit35eb9708b0c8c90e37a042f387300342cae2af06 (patch)
tree10d6c78e65871a153d965caf5b37609b7272389d /cui
parentca360dfe03882e27584ca38146940440b4891758 (diff)
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@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/autocdlg.cxx4
1 files changed, 2 insertions, 2 deletions
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);