From 17723df2c8d90fd793e90f58eaa8f99751fffd68 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 30 Jun 2010 14:52:41 +0000 Subject: [PATCH] - set items in TrustView to not editable - don't show the own gpgid in FofPage in ConnectFriendWizard git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3238 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/TrustView.ui | 6 +++++- retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/TrustView.ui b/retroshare-gui/src/gui/TrustView.ui index 0347893ba..f2cfe3380 100644 --- a/retroshare-gui/src/gui/TrustView.ui +++ b/retroshare-gui/src/gui/TrustView.ui @@ -14,7 +14,11 @@ - + + + QAbstractItemView::NoEditTriggers + + diff --git a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp index a261f7643..e11855d06 100755 --- a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp +++ b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp @@ -465,8 +465,7 @@ void FofPage::updatePeersList(int e) { selectedPeersTW->clearContents() ; selectedPeersTW->setRowCount(0) ; - std::list ids ; - rsPeers->getGPGAllList(ids) ; + std::string sOwnId = rsPeers->getGPGOwnId(); int row = 0 ; @@ -480,6 +479,11 @@ void FofPage::updatePeersList(int e) { rsPeers->getGPGAllList(gpg_ids); for(std::list::const_iterator it(gpg_ids.begin());it!=gpg_ids.end();++it) { + if (*it == sOwnId) { + // its me + continue; + } + std::cerr << "examining peer " << *it << " (name=" << rsPeers->getPeerName(*it) ; RsPeerDetails details ;