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

Mike Kaganski mike.kaganski at collabora.com
Sat May 26 15:02:03 UTC 2018


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

New commits:
commit f304ae0ca4738fa3605587146224ee8972a894f3
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>

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 90688e0648b9..6d8e340ccd9e 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -485,6 +485,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