diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-02-16 17:05:34 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-02-17 11:03:52 +0100 |
commit | ca5e771e165038592505b2c378c743405ce45e27 (patch) | |
tree | 19fbc9fb2aab64efdb53fdeeaf1e4753cffac615 /sw/source | |
parent | 1b70f748224a7e24d9368449db0be19d6e593e66 (diff) |
MSForms: Show restart dialog when MS compatible Forms menu setting is changed
Reviewed-on: https://gerrit.libreoffice.org/67906
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 54b2615e0d209f815b3d503523fd4c517dc6b5cd)
Change-Id: Icb98dac73dea5f5cb18e1ca34e37e9d9bf84782e
Reviewed-on: https://gerrit.libreoffice.org/67921
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/config/optcomp.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx index 3d8bfcb1030c..7909fb22f90c 100644 --- a/sw/source/ui/config/optcomp.cxx +++ b/sw/source/ui/config/optcomp.cxx @@ -35,6 +35,8 @@ #include <svtools/treelistentry.hxx> #include <IDocumentSettingAccess.hxx> #include <vector> +#include <svtools/restartdialog.hxx> +#include <comphelper/processfactory.hxx> using namespace ::com::sun::star::beans; using namespace ::com::sun::star::document; @@ -458,6 +460,12 @@ bool SwCompatibilityOptPage::FillItemSet( SfxItemSet* ) m_aViewConfigItem.SetMSOCompatibleFormsMenu(bNewMSFormsMenuOption); m_bSavedMSFormsMenuOption = bNewMSFormsMenuOption; bModified = true; + + // Show a message about that the option needs a restart to be applied + { + svtools::executeRestartDialog(comphelper::getProcessComponentContext(), + nullptr, svtools::RESTART_REASON_MSCOMPATIBLE_FORMS_MENU); + } } return bModified; |