mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
make peer detail gui work for the gpg and the ssl id
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2011 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
41600dc3cf
commit
dabe44356a
6 changed files with 49 additions and 33 deletions
|
@ -378,15 +378,7 @@ void NetworkDialog::insertConnect()
|
|||
item -> setText(1, QString::fromStdString(detail.name));
|
||||
|
||||
/* (2) has me auth */
|
||||
bool hasSignedMe = false;
|
||||
std::list<std::string>::iterator signersIt;
|
||||
for(signersIt = ownGPGDetails.gpgSigners.begin(); signersIt != ownGPGDetails.gpgSigners.end() ; ++signersIt) {
|
||||
if (*signersIt == detail.id) {
|
||||
hasSignedMe = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (hasSignedMe)
|
||||
if (detail.hasSignedMe)
|
||||
item -> setText(2, tr("Has authenticated me"));
|
||||
else
|
||||
item -> setText(2, tr("Unknown"));
|
||||
|
@ -413,7 +405,7 @@ void NetworkDialog::insertConnect()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (hasSignedMe)
|
||||
if (detail.hasSignedMe)
|
||||
{
|
||||
backgrndcolor=Qt::magenta;
|
||||
item -> setIcon(0,(QIcon(IMAGE_TRUSTED)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue