summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-04-03 18:16:01 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2019-04-04 10:54:31 +0200
commitd186417395b29a5404aed3f819dd81aa92385f20 (patch)
tree15a375285ce3cb614fcd0ff8c41e03e78d7f772d /sc/source
parentc371d8ba8960e7830027d4d8d9155bab94722952 (diff)
tdf#124323: show restart dialog when toggling multi-threaded...
calculation Change-Id: I853ae21d4c085488232a375ef42480453c01880b Reviewed-on: https://gerrit.libreoffice.org/70210 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/optdlg/tpcalc.cxx6
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 )
{