diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-22 07:05:26 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-22 09:43:37 +0200 |
commit | ce005c88e2054ea06e1667195bf6585efc4961ae (patch) | |
tree | 96d1b9d36cdd7e05278b043b7ed4f3aea773d50c /cui | |
parent | 090e243c401fdb73a917a5deb36279c445cfcbb9 (diff) |
Don't try to sign when no certificate is selected
Change-Id: I30f8f5970538db25ae678dc5b32afb292fd3983a
Reviewed-on: https://gerrit.libreoffice.org/54652
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SignSignatureLineDialog.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |