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:
joss17 2010-01-13 21:12:56 +00:00
parent 41600dc3cf
commit dabe44356a
6 changed files with 49 additions and 33 deletions

View file

@ -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)));