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

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Tue May 22 07:43:59 UTC 2018


 cui/source/dialogs/SignSignatureLineDialog.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ce005c88e2054ea06e1667195bf6585efc4961ae
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue May 22 07:05:26 2018 +0200

    Don't try to sign when no certificate is selected
    
    Change-Id: I30f8f5970538db25ae678dc5b32afb292fd3983a
    Reviewed-on: https://gerrit.libreoffice.org/54652
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/cui/source/dialogs/SignSignatureLineDialog.cxx b/cui/source/dialogs/SignSignatureLineDialog.cxx
index 8cc06d90a4eb..641a4fb10c68 100644
--- a/cui/source/dialogs/SignSignatureLineDialog.cxx
+++ b/cui/source/dialogs/SignSignatureLineDialog.cxx
@@ -142,6 +142,7 @@ void SignSignatureLineDialog::Apply()
     if (!m_xSelectedCertifate.is())
     {
         SAL_WARN("cui.dialogs", "No certificate selected!");
+        return;
     }
 
     SfxObjectShell* pShell = SfxObjectShell::Current();


More information about the Libreoffice-commits mailing list