From bb9fb1125769435e535b726e16de2ce03af4b059 Mon Sep 17 00:00:00 2001 From: joss17 Date: Wed, 13 Jan 2010 21:18:05 +0000 Subject: [PATCH] remove own id from friends git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2016 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/PeersDialog.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 798fc6b19..f9832c87d 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -287,6 +287,9 @@ void PeersDialog::insertPeers() //add the gpg friends for(it = gpgFriends.begin(); it != gpgFriends.end(); it++) { + if (*it == rsPeers->getPGPOwnId()) { + continue; + } RsPeerDetails detail; if (!rsPeers->getPeerDetails(*it, detail)) { continue; /* BAD */ @@ -355,7 +358,7 @@ void PeersDialog::insertPeers() sslItem -> setIcon(0,(QIcon(IMAGE_ONLINE))); QFont font; font.setBold(true); - for(i = 1; i < 3; i++) { + for(i = 0; i < 3; i++) { sslItem -> setTextColor(i,(Qt::darkBlue)); sslItem -> setFont(i,font); } @@ -363,7 +366,7 @@ void PeersDialog::insertPeers() sslItem -> setIcon(0,(QIcon(IMAGE_UNREACHABLE))); QFont font; font.setBold(false); - for(i = 1; i < 3; i++) { + for(i = 0; i < 3; i++) { sslItem -> setTextColor(i,(Qt::darkRed)); sslItem -> setFont(i,font); } @@ -372,7 +375,7 @@ void PeersDialog::insertPeers() sslItem -> setIcon(0,(QIcon(IMAGE_AVAIBLE))); QFont font; font.setBold(true); - for(i = 1; i < 3; i++) { + for(i = 0; i < 3; i++) { sslItem -> setTextColor(i,(Qt::darkCyan)); sslItem -> setFont(i,font); } @@ -384,7 +387,7 @@ void PeersDialog::insertPeers() } QFont font; font.setBold(false); - for(i = 1; i < 3; i++) { + for(i = 0; i < 3; i++) { sslItem -> setTextColor(i,(Qt::black)); sslItem -> setFont(i,font); }