remove own id from friends

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2016 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-01-13 21:18:05 +00:00
parent b96a6d879e
commit bb9fb11257

View File

@ -287,6 +287,9 @@ void PeersDialog::insertPeers()
//add the gpg friends //add the gpg friends
for(it = gpgFriends.begin(); it != gpgFriends.end(); it++) { for(it = gpgFriends.begin(); it != gpgFriends.end(); it++) {
if (*it == rsPeers->getPGPOwnId()) {
continue;
}
RsPeerDetails detail; RsPeerDetails detail;
if (!rsPeers->getPeerDetails(*it, detail)) { if (!rsPeers->getPeerDetails(*it, detail)) {
continue; /* BAD */ continue; /* BAD */
@ -355,7 +358,7 @@ void PeersDialog::insertPeers()
sslItem -> setIcon(0,(QIcon(IMAGE_ONLINE))); sslItem -> setIcon(0,(QIcon(IMAGE_ONLINE)));
QFont font; QFont font;
font.setBold(true); font.setBold(true);
for(i = 1; i < 3; i++) { for(i = 0; i < 3; i++) {
sslItem -> setTextColor(i,(Qt::darkBlue)); sslItem -> setTextColor(i,(Qt::darkBlue));
sslItem -> setFont(i,font); sslItem -> setFont(i,font);
} }
@ -363,7 +366,7 @@ void PeersDialog::insertPeers()
sslItem -> setIcon(0,(QIcon(IMAGE_UNREACHABLE))); sslItem -> setIcon(0,(QIcon(IMAGE_UNREACHABLE)));
QFont font; QFont font;
font.setBold(false); font.setBold(false);
for(i = 1; i < 3; i++) { for(i = 0; i < 3; i++) {
sslItem -> setTextColor(i,(Qt::darkRed)); sslItem -> setTextColor(i,(Qt::darkRed));
sslItem -> setFont(i,font); sslItem -> setFont(i,font);
} }
@ -372,7 +375,7 @@ void PeersDialog::insertPeers()
sslItem -> setIcon(0,(QIcon(IMAGE_AVAIBLE))); sslItem -> setIcon(0,(QIcon(IMAGE_AVAIBLE)));
QFont font; QFont font;
font.setBold(true); font.setBold(true);
for(i = 1; i < 3; i++) { for(i = 0; i < 3; i++) {
sslItem -> setTextColor(i,(Qt::darkCyan)); sslItem -> setTextColor(i,(Qt::darkCyan));
sslItem -> setFont(i,font); sslItem -> setFont(i,font);
} }
@ -384,7 +387,7 @@ void PeersDialog::insertPeers()
} }
QFont font; QFont font;
font.setBold(false); font.setBold(false);
for(i = 1; i < 3; i++) { for(i = 0; i < 3; i++) {
sslItem -> setTextColor(i,(Qt::black)); sslItem -> setTextColor(i,(Qt::black));
sslItem -> setFont(i,font); sslItem -> setFont(i,font);
} }