From a9e098aa4e66c771642b26527e3e48c48c428574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kelemen=20G=C3=A1bor?= Date: Tue, 6 Aug 2019 14:22:36 +0200 Subject: [PATCH] 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 --- sw/source/ui/dbui/addresslistdialog.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); } }