From cf81f3ba0602eeffad8907a1bb9cdd24e62c2d1e Mon Sep 17 00:00:00 2001 From: Berk Gureken Date: Tue, 22 Mar 2016 07:15:05 +0200 Subject: 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 Reviewed-by: Jan Holesovsky --- cui/source/options/optgdlg.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cui/source') 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 #include #include +#include +#include #include @@ -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 -- cgit