Kaydet (Commit) dfa1f1f8 authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Xisco Faulí

tdf#122846: Close option dialog if restart is confirmed

use the same logic as 0fa14d58

Change-Id: I485cb232bb787e176918caf2eee74b0fbb360e47
Reviewed-on: https://gerrit.libreoffice.org/66691
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Reviewed-on: https://gerrit.libreoffice.org/66732Reviewed-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
üst 273330a5
...@@ -958,9 +958,10 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* ) ...@@ -958,9 +958,10 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
m_pForceOpenGL->IsValueChangedFromSaved()) m_pForceOpenGL->IsValueChangedFromSaved())
{ {
SolarMutexGuard aGuard; SolarMutexGuard aGuard;
svtools::executeRestartDialog( if( svtools::executeRestartDialog(
comphelper::getProcessComponentContext(), nullptr, comphelper::getProcessComponentContext(), nullptr,
svtools::RESTART_REASON_OPENGL); svtools::RESTART_REASON_OPENGL))
GetParentDialog()->EndDialog(RET_OK);
} }
return bModified; return bModified;
......
...@@ -803,7 +803,8 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, CertPathPBHdl, Button*, void) ...@@ -803,7 +803,8 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, CertPathPBHdl, Button*, void)
if (nRet == RET_OK && sOrig != mpCertPathDlg->getDirectory()) if (nRet == RET_OK && sOrig != mpCertPathDlg->getDirectory())
{ {
SolarMutexGuard aGuard; 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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment