aboutsummaryrefslogtreecommitdiff
path: root/src/certificateselectiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/certificateselectiondialog.cpp')
-rw-r--r--src/certificateselectiondialog.cpp10
1 files changed, 10 insertions, 0 deletions
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!";
+ }
+}