summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-01-24 10:13:18 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2019-01-24 14:39:12 +0100
commitc81340bcc73144e082efb9fc575ef62b9b046ca4 (patch)
tree0e4fa3292717933ca17586d698c8b6b4a73a2fc6 /cui
parenta71a33e2f03fd2a56894dc8bce0250623c7a05b4 (diff)
tdf#122912: Close option dialog if restart is confirmed ( part 2 )
forgot it in e961e08a3277158d4e3074bfacb8599296d2fa75 Change-Id: Id896bf407ca33faf0dbff74f3cbe98d23de0e0c7 Reviewed-on: https://gerrit.libreoffice.org/66846 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optgdlg.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index d0c937398369..c704eacada54 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -1393,9 +1393,10 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
Reference< XChangesBatch >(xProp, UNO_QUERY_THROW)->commitChanges();
// display info
SolarMutexGuard aGuard;
- svtools::executeRestartDialog(
- comphelper::getProcessComponentContext(), GetFrameWeld(),
- svtools::RESTART_REASON_LANGUAGE_CHANGE);
+ if (svtools::executeRestartDialog(
+ comphelper::getProcessComponentContext(), GetFrameWeld(),
+ svtools::RESTART_REASON_LANGUAGE_CHANGE))
+ GetParentDialog()->EndDialog(RET_OK);
// tell quickstarter to stop being a veto listener