Commit 4c3dfe9a authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Show group details when user clicks on validity icon

GnuPG-bug-id: 5175
parent 29a6e85e
......@@ -187,10 +187,11 @@ void CertificateLineEdit::updateKey()
/* FIXME: This needs to be solved by a multiple UID supporting model */
mLineAction->setIcon(Formatting::iconForUid(newKey.userID(0)));
mLineAction->setToolTip(Formatting::validity(newKey.userID(0)) +
QStringLiteral("<br/>Click here for details."));
QLatin1String("<br/>") + i18n("Click for details."));
} else if (!newGroup.isNull()) {
mLineAction->setIcon(Formatting::validityIcon(newGroup));
mLineAction->setToolTip(Formatting::validity(newGroup));
mLineAction->setToolTip(Formatting::validity(newGroup) +
QLatin1String("<br/>") + i18n("Click for details."));
} else {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("emblem-error")));
mLineAction->setToolTip(i18n("No matching certificates found.<br/>Click here to import a certificate."));
......
......@@ -18,6 +18,7 @@
#include "commands/detailscommand.h"
#include "dialogs/certificateselectiondialog.h"
#include "dialogs/groupdetailsdialog.h"
#include <QVBoxLayout>
#include <QHBoxLayout>
......@@ -275,6 +276,13 @@ void SignEncryptWidget::dialogRequested(CertificateLineEdit *certificateLineEdit
cmd->start();
return;
}
if (!certificateLineEdit->group().isNull()) {
GroupDetailsDialog *dlg = new GroupDetailsDialog;
dlg->setAttribute(Qt::WA_DeleteOnClose);
dlg->setGroup(certificateLineEdit->group());
dlg->show();
return;
}
CertificateSelectionDialog *const dlg = new CertificateSelectionDialog(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment