[Libreoffice-commits] core.git: xmlsecurity/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Tue Jun 27 09:26:25 UTC 2017


 xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx |    5 ++++-
 xmlsecurity/source/dialogs/digitalsignaturesdialog.hrc |    1 +
 xmlsecurity/source/dialogs/digitalsignaturesdialog.src |    5 +++++
 3 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit e1d1c84dc994aedcf27b46cc96b4b8f79997c40e
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue Jun 27 10:08:23 2017 +0200

    gpg4libre: Show message when no cert manager found
    
    Change-Id: I0da5f20b049ab2d8c992cb2a04dcf544f0b35aa1
    Reviewed-on: https://gerrit.libreoffice.org/39289
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

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: */


More information about the Libreoffice-commits mailing list