[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3-desktop' - sw/source

Mike Kaganski mike.kaganski at collabora.com
Tue May 29 14:05:05 UTC 2018


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

New commits:
commit ff8fdd1133403050182b18cccec5fe461cf0b0c3
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Sat May 26 14:23:13 2018 +0300

    tdf#117817: Update Mail Merge controls after wizard completes
    
    Otherwise they may stay disabled until cursor position changes.
    
    Change-Id: If734bbd4793b3b01c64601d68126d5752f5aba0c
    Reviewed-on: https://gerrit.libreoffice.org/54841
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
    Tested-by: Mike Kaganski <mike.kaganski at collabora.com>
    (cherry picked from commit f304ae0ca4738fa3605587146224ee8972a894f3)
    Reviewed-on: https://gerrit.libreoffice.org/54983

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 619c202a6039..d9b3f45ae62a 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -497,6 +497,20 @@ void SwMailMergeWizardExecutor::ExecutionFinished()
             pDbManager->CommitLastRegistrations();
     }
 
+    // Update Mail Merge controls
+    const sal_uInt16 slotIds[] = { FN_MAILMERGE_FIRST_ENTRY,
+                                   FN_MAILMERGE_PREV_ENTRY,
+                                   FN_MAILMERGE_NEXT_ENTRY,
+                                   FN_MAILMERGE_LAST_ENTRY,
+                                   FN_MAILMERGE_CURRENT_ENTRY,
+                                   FN_MAILMERGE_EXCLUDE_ENTRY,
+                                   FN_MAILMERGE_CREATE_DOCUMENTS,
+                                   FN_MAILMERGE_SAVE_DOCUMENTS,
+                                   FN_MAILMERGE_PRINT_DOCUMENTS,
+                                   FN_MAILMERGE_EMAIL_DOCUMENTS,
+                                   0 };
+    m_pView->GetViewFrame()->GetBindings().Invalidate(slotIds);
+
     // release/destroy asynchronously
     Application::PostUserEvent( LINK( this, SwMailMergeWizardExecutor, DestroyDialogHdl ) );
 }


More information about the Libreoffice-commits mailing list