diff options
author | irem <iremsendur1@gmail.com> | 2016-05-01 15:28:53 +0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-05-03 09:22:16 +0000 |
commit | 2fce97c51ceb15c7722ed828b2cc0ea4b21c8c95 (patch) | |
tree | f0dd9efa9ff53e1122fed864d832df50e820d8db /cui | |
parent | a05ab9ef5e1804faed90f3df2f7fb8cb49065590 (diff) |
tdf#99211 Use the restart dialog for notifications about restart
Change-Id: I2093e99d7b377285f6b3248a90072f0dea12f732
Reviewed-on: https://gerrit.libreoffice.org/24556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optinet2.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 092f35513be4..be551b5116f7 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -91,6 +91,9 @@ #include "certpath.hxx" #include "tsaurls.hxx" +#include <svtools/restartdialog.hxx> +#include <comphelper/solarmutex.hxx> + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::sfx2; @@ -804,8 +807,8 @@ IMPL_LINK_NOARG_TYPED(SvxSecurityTabPage, CertPathPBHdl, Button*, void) if (nRet == RET_OK && sOrig != mpCertPathDlg->getDirectory()) { - ScopedVclPtrInstance< MessageDialog > aWarnBox(this, CUI_RES(RID_SVXSTR_OPTIONS_RESTART), VCL_MESSAGE_INFO); - aWarnBox->Execute(); + SolarMutexGuard aGuard; + svtools::executeRestartDialog(comphelper::getProcessComponentContext(), nullptr, svtools::RESTART_REASON_ADDING_PATH); } } |