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

Kelemen Gábor (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 4 08:20:49 UTC 2019


 sw/source/ui/dbui/addresslistdialog.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a9e098aa4e66c771642b26527e3e48c48c428574
Author:     Kelemen Gábor <kelemeng at ubuntu.com>
AuthorDate: Tue Aug 6 14:22:36 2019 +0200
Commit:     László Németh <nemeth at numbertext.org>
CommitDate: Wed Sep 4 10:20:14 2019 +0200

    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 at documentfoundation.org>

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);
                 }
         }


More information about the Libreoffice-commits mailing list