cui/source/dialogs/SignSignatureLineDialog.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit ce005c88e2054ea06e1667195bf6585efc4961ae Author: Samuel Mehrbrodt <samuel.mehrbr...@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 <c...@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits