diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-06-27 10:08:23 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-06-27 11:26:04 +0200 |
commit | e1d1c84dc994aedcf27b46cc96b4b8f79997c40e (patch) | |
tree | 2ee33107e19f238bb1cb2bb98942dfa877b711b5 /xmlsecurity/source | |
parent | 6561fc32afaa0ca992ae988b6d08c62e3e516d43 (diff) |
gpg4libre: Show message when no cert manager found
Change-Id: I0da5f20b049ab2d8c992cb2a04dcf544f0b35aa1
Reviewed-on: https://gerrit.libreoffice.org/39289
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 5 | ||||
-rw-r--r-- | xmlsecurity/source/dialogs/digitalsignaturesdialog.hrc | 1 | ||||
-rw-r--r-- | xmlsecurity/source/dialogs/digitalsignaturesdialog.src | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index c47c415423ba..6f6ea28a40d1 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -502,7 +502,10 @@ IMPL_STATIC_LINK_NOARG(DigitalSignaturesDialog, CertMgrButtonHdl, Button*, void) xSystemShell->execute( sExecutable, OUString(), css::system::SystemShellExecuteFlags::DEFAULTS ); } - //else FIXME: none of the certificate managers' there + else + { + ScopedVclPtrInstance<InfoBox>(nullptr, XsResId(STR_XMLSECDLG_NO_CERT_MANAGER))->Execute(); + } } diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.hrc b/xmlsecurity/source/dialogs/digitalsignaturesdialog.hrc index b7867dd37a87..4998defb3238 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.hrc +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.hrc @@ -27,6 +27,7 @@ #define STR_XMLSECDLG_QUERY_REMOVEDOCSIGNBEFORESIGN (RID_DIGITALSIGNATUREDLG_START + 1) #define STR_XMLSECDLG_QUERY_REALLYREMOVE (RID_DIGITALSIGNATUREDLG_START + 2) #define STR_XMLSECDLG_SIGNING_FAILED (RID_DIGITALSIGNATUREDLG_START + 3) +#define STR_XMLSECDLG_NO_CERT_MANAGER (RID_DIGITALSIGNATUREDLG_START + 4) #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.src b/xmlsecurity/source/dialogs/digitalsignaturesdialog.src index 48f7cc3b478e..9bf58db172f4 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.src +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.src @@ -46,4 +46,9 @@ String STR_XMLSECDLG_SIGNING_FAILED Text [ en-US ] = "An error occured while adding the signature."; }; +String STR_XMLSECDLG_NO_CERT_MANAGER +{ + Text [ en-US ] = "Could not find any certificate manager."; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |