summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-05-26 14:23:13 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-05-29 16:04:43 +0200
commitff8fdd1133403050182b18cccec5fe461cf0b0c3 (patch)
tree3968b0421ab228bb65e6e2d5a5955c6a49ac7704 /sw
parent4f0fee308da574634cd9f9181cc8dda2afdf73b3 (diff)
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@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit f304ae0ca4738fa3605587146224ee8972a894f3) Reviewed-on: https://gerrit.libreoffice.org/54983
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/app/apphdl.cxx14
1 files changed, 14 insertions, 0 deletions
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 ) );
}