summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorKelemen Gábor <kelemeng@ubuntu.com>2019-08-06 14:22:36 +0200
committerLászló Németh <nemeth@numbertext.org>2019-09-04 10:20:14 +0200
commita9e098aa4e66c771642b26527e3e48c48c428574 (patch)
treebb1a7051c8e30ce1e760300e59e8070f0f907a70 /sw
parent2340c2ffe46271c5a14e8831b8a8f5b56ed2da8c (diff)
tdf#125330 Disable Filter and Change Table buttons
in the Select Address List dialog if there are no entries Change-Id: Iaff60bd0e031884bf1032cf656260353f48ce60d Reviewed-on: https://gerrit.libreoffice.org/77025 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/addresslistdialog.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx
index be4d6275fb74..88aabd52855e 100644
--- a/sw/source/ui/dbui/addresslistdialog.cxx
+++ b/sw/source/ui/dbui/addresslistdialog.cxx
@@ -211,6 +211,8 @@ SwAddressListDialog::SwAddressListDialog(SwMailMergeAddressBlockPage* pParent)
m_xOK->set_sensitive(m_xListLB->n_children() > 0 && bEnableOK);
m_xEditPB->set_sensitive(bEnableEdit);
m_xRemovePB->set_sensitive(m_xListLB->n_children() > 0);
+ m_xFilterPB->set_sensitive(m_xListLB->n_children() > 0);
+ m_xTablePB->set_sensitive(m_xListLB->n_children() > 0);
m_xListLB->connect_changed(LINK(this, SwAddressListDialog, ListBoxSelectHdl_Impl));
TableSelectHdl(nullptr);
}
@@ -307,6 +309,7 @@ IMPL_LINK_NOARG(SwAddressListDialog, RemoveHdl_Impl, weld::Button&, void)
{
m_xRemovePB->set_sensitive(false);
m_xEditPB->set_sensitive(false);
+ m_xFilterPB->set_sensitive(false);
m_xCreateListPB->set_sensitive(true);
}
}