diff options
author | Berk Gureken <berkgureken@gmail.com> | 2016-03-22 07:15:05 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-04-11 07:11:19 +0000 |
commit | cf81f3ba0602eeffad8907a1bb9cdd24e62c2d1e (patch) | |
tree | c6af501c71350ce3b91b0fbdd512b5d7f6e6f2ad /cui | |
parent | b4ddacbc552905d0434e9204ee954cb4522a00cd (diff) |
tdf#79656 Restart now window for language change
When you change the UI language and click OK,
Restart Now window opens instead of warning window.
Change-Id: Ic503bf4536a855891456f48745b748786857200f
Reviewed-on: https://gerrit.libreoffice.org/23421
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 52ef10e0e058..396d1eea3f81 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -97,6 +97,8 @@ #include <svx/ofaitem.hxx> #include <svtools/apearcfg.hxx> #include <svtools/optionsdrawinglayer.hxx> +#include <svtools/restartdialog.hxx> +#include <comphelper/solarmutex.hxx> #include <config_vclplug.h> @@ -1285,8 +1287,10 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet ) xProp->setPropertyValue(sUserLocaleKey, makeAny(aLangString)); Reference< XChangesBatch >(xProp, UNO_QUERY_THROW)->commitChanges(); // display info - ScopedVclPtrInstance< MessageDialog > aBox(this, CUI_RES(RID_SVXSTR_LANGUAGE_RESTART), VCL_MESSAGE_INFO); - aBox->Execute(); + SolarMutexGuard aGuard; + svtools::executeRestartDialog( + comphelper::getProcessComponentContext(), nullptr, + svtools::RESTART_REASON_LANGUAGE_CHANGE); // tell quickstarter to stop being a veto listener |