diff options
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 |