From 72e4523e2fb27ee714c30c5aa135198f7b5d553d Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Thu, 11 Jun 2020 02:43:30 +0200 Subject: Slight improvements for client certificate display, permanent certs are now selectable with double click and have icons, adds changelog into application itself: about:updates --- src/certificateselectiondialog.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/certificateselectiondialog.cpp') diff --git a/src/certificateselectiondialog.cpp b/src/certificateselectiondialog.cpp index e3aef35..66e758f 100644 --- a/src/certificateselectiondialog.cpp +++ b/src/certificateselectiondialog.cpp @@ -115,3 +115,13 @@ void CertificateSelectionDialog::on_use_selected_cert_clicked() qDebug() << "Tried to use an invalid identity when the button should not be enabled. This is a bug!"; } } + +void CertificateSelectionDialog::on_certificates_doubleClicked(const QModelIndex &index) +{ + this->cryto_identity = global_identities.getIdentity(index); + if(this->cryto_identity.isValid()) { + this->accept(); + } else { + qDebug() << "Tried to use an invalid identity when the button should not be enabled. This is a bug!"; + } +} -- cgit v1.2.3