summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorBerk Gureken <berkgureken@gmail.com>2016-03-22 07:15:05 +0200
committerJan Holesovsky <kendy@collabora.com>2016-04-11 07:11:19 +0000
commitcf81f3ba0602eeffad8907a1bb9cdd24e62c2d1e (patch)
treec6af501c71350ce3b91b0fbdd512b5d7f6e6f2ad /cui
parentb4ddacbc552905d0434e9204ee954cb4522a00cd (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.cxx8
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