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() ...@@ -187,10 +187,11 @@ void CertificateLineEdit::updateKey()
/* FIXME: This needs to be solved by a multiple UID supporting model */ /* FIXME: This needs to be solved by a multiple UID supporting model */
mLineAction->setIcon(Formatting::iconForUid(newKey.userID(0))); mLineAction->setIcon(Formatting::iconForUid(newKey.userID(0)));
mLineAction->setToolTip(Formatting::validity(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()) { } else if (!newGroup.isNull()) {
mLineAction->setIcon(Formatting::validityIcon(newGroup)); mLineAction->setIcon(Formatting::validityIcon(newGroup));
mLineAction->setToolTip(Formatting::validity(newGroup)); mLineAction->setToolTip(Formatting::validity(newGroup) +
QLatin1String("<br/>") + i18n("Click for details."));
} else { } else {
mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("emblem-error"))); mLineAction->setIcon(QIcon::fromTheme(QStringLiteral("emblem-error")));
mLineAction->setToolTip(i18n("No matching certificates found.<br/>Click here to import a certificate.")); mLineAction->setToolTip(i18n("No matching certificates found.<br/>Click here to import a certificate."));
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "commands/detailscommand.h" #include "commands/detailscommand.h"
#include "dialogs/certificateselectiondialog.h" #include "dialogs/certificateselectiondialog.h"
#include "dialogs/groupdetailsdialog.h"
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QHBoxLayout> #include <QHBoxLayout>
...@@ -275,6 +276,13 @@ void SignEncryptWidget::dialogRequested(CertificateLineEdit *certificateLineEdit ...@@ -275,6 +276,13 @@ void SignEncryptWidget::dialogRequested(CertificateLineEdit *certificateLineEdit
cmd->start(); cmd->start();
return; 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); CertificateSelectionDialog *const dlg = new CertificateSelectionDialog(this);
......
Supports Markdown
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