summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2024-07-11 17:54:15 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2024-07-11 20:57:40 +0200
commitb7a6d5752a3f60dc29cde6ea05ee6b7112dc4780 (patch)
treef28b396d6c57a1ab1f181554a33ca7aa6d201ddd
parent406a7e9d452201f3fd53abc770da6eb9589fff92 (diff)
tdf#108828 Show certificate selector again after cancelling password dialog
Change-Id: I0a57204c1885ca300d22832e5469d8918aec9ba6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170384 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index da396d7ba0a7..9c3081cdca34 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -466,7 +466,7 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, AddButtonHdl, weld::Button&, void)
xSecContexts.push_back(maSignatureManager.getGpgSecurityContext());
std::unique_ptr<CertificateChooser> aChooser = CertificateChooser::getInstance(m_xDialog.get(), std::move(xSecContexts), CertificateChooserUserAction::Sign);
- if (aChooser->run() == RET_OK)
+ while (aChooser->run() == RET_OK)
{
sal_Int32 nSecurityId;
if (!maSignatureManager.add(aChooser->GetSelectedCertificates()[0], aChooser->GetSelectedSecurityContext(),
@@ -491,6 +491,7 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, AddButtonHdl, weld::Button&, void)
mbVerifySignatures = true;
ImplGetSignatureInformations(/*bUseTempStream=*/true, /*bCacheLastSignature=*/false);
ImplFillSignaturesBox();
+ break;
}
}
}