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>
This commit is contained in:
Samuel Mehrbrodt
2018-05-22 07:05:26 +02:00
parent 090e243c40
commit ce005c88e2

View File

@@ -142,6 +142,7 @@ void SignSignatureLineDialog::Apply()
if (!m_xSelectedCertifate.is()) if (!m_xSelectedCertifate.is())
{ {
SAL_WARN("cui.dialogs", "No certificate selected!"); SAL_WARN("cui.dialogs", "No certificate selected!");
return;
} }
SfxObjectShell* pShell = SfxObjectShell::Current(); SfxObjectShell* pShell = SfxObjectShell::Current();