[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jan 22 16:51:14 UTC 2019
cui/source/options/optgdlg.cxx | 7 ++++---
cui/source/options/optinet2.cxx | 3 ++-
2 files changed, 6 insertions(+), 4 deletions(-)
New commits:
commit dfa1f1f872c418e89757a3985979b79e94c12fcc
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Jan 21 17:00:52 2019 +0100
Commit: Xisco FaulĂ <xiscofauli at libreoffice.org>
CommitDate: Tue Jan 22 17:50:48 2019 +0100
tdf#122846: Close option dialog if restart is confirmed
use the same logic as 0fa14d58457e9418ff756a0efd66e365c4403a67
Change-Id: I485cb232bb787e176918caf2eee74b0fbb360e47
Reviewed-on: https://gerrit.libreoffice.org/66691
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
Reviewed-on: https://gerrit.libreoffice.org/66732
Reviewed-by: Xisco FaulĂ <xiscofauli at libreoffice.org>
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index bd244c72a518..bd9702902e6d 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -958,9 +958,10 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
m_pForceOpenGL->IsValueChangedFromSaved())
{
SolarMutexGuard aGuard;
- svtools::executeRestartDialog(
- comphelper::getProcessComponentContext(), nullptr,
- svtools::RESTART_REASON_OPENGL);
+ if( svtools::executeRestartDialog(
+ comphelper::getProcessComponentContext(), nullptr,
+ svtools::RESTART_REASON_OPENGL))
+ GetParentDialog()->EndDialog(RET_OK);
}
return bModified;
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 8124c7d8998c..4d32aea2ebb4 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -803,7 +803,8 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, CertPathPBHdl, Button*, void)
if (nRet == RET_OK && sOrig != mpCertPathDlg->getDirectory())
{
SolarMutexGuard aGuard;
- svtools::executeRestartDialog(comphelper::getProcessComponentContext(), nullptr, svtools::RESTART_REASON_ADDING_PATH);
+ if (svtools::executeRestartDialog(comphelper::getProcessComponentContext(), nullptr, svtools::RESTART_REASON_ADDING_PATH))
+ GetParentDialog()->EndDialog(RET_OK);
}
}
More information about the Libreoffice-commits
mailing list