diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/optdlg/tpcalc.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx index cc29f7ce7789..5f294aa51d68 100644 --- a/sc/source/ui/optdlg/tpcalc.cxx +++ b/sc/source/ui/optdlg/tpcalc.cxx @@ -27,6 +27,7 @@ #include <docoptio.hxx> #include <sc.hrc> #include <officecfg/Office/Calc.hxx> +#include <svtools/restartdialog.hxx> #include <tpcalc.hxx> @@ -206,6 +207,11 @@ bool ScTpCalcOptions::FillItemSet( SfxItemSet* rCoreAttrs ) std::shared_ptr<comphelper::ConfigurationChanges> xBatch(comphelper::ConfigurationChanges::create()); officecfg::Office::Calc::Formula::Calculation::UseThreadedCalculationForFormulaGroups::set(bShouldEnableThreading, xBatch); xBatch->commit(); + SolarMutexGuard aGuard; + if (svtools::executeRestartDialog( + comphelper::getProcessComponentContext(), GetFrameWeld(), + svtools::RESTART_REASON_THREADING)) + GetParentDialog()->EndDialog(RET_OK); } if ( *pLocalOptions != *pOldOptions ) { |