sw/source/uibase/app/apphdl.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 16376cae68f4406ef9440bdcb7b9617de6a6f998
Author:     Justin Luth <justin_l...@sil.org>
AuthorDate: Fri Dec 10 08:58:41 2021 +0200
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Fri Dec 10 12:27:05 2021 +0100

    tdf#144680 mailmerge toolbar: disable all icons if no resultset
    
    followup to my previous patch. I had played with this,
    and do to poor testing or some residual effect,
    I thought this wasn't necessary to disable the
    movement buttons specifically. But in renewed
    testing it is clear that it isn't magic that
    causes the disabling at the proper time.
    
    Change-Id: Ic57dba42d649e79bd1db2b95f8f4316e772ccaeb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126628
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 4e68665ead51..f5d537b8974a 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -822,6 +822,10 @@ void SwModule::ExecOther(SfxRequest& rReq)
                 rBindings.Invalidate(FN_MAILMERGE_SAVE_DOCUMENTS);
                 rBindings.Invalidate(FN_MAILMERGE_PRINT_DOCUMENTS);
                 rBindings.Invalidate(FN_MAILMERGE_EMAIL_DOCUMENTS);
+                rBindings.Invalidate(FN_MAILMERGE_FIRST_ENTRY);
+                rBindings.Invalidate(FN_MAILMERGE_PREV_ENTRY);
+                rBindings.Invalidate(FN_MAILMERGE_NEXT_ENTRY);
+                rBindings.Invalidate(FN_MAILMERGE_LAST_ENTRY);
                 rBindings.Update();
                 return;
             }

Reply via email to