mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
remove "attempt to connect" to normal nodes menu entry for hidden nodes
This commit is contained in:
parent
a69e068db3
commit
fe0b22e9f1
@ -342,7 +342,8 @@ void FriendList::peerTreeWidgetCustomPopupMenu()
|
|||||||
|
|
||||||
// QMenu *lobbyMenu = NULL;
|
// QMenu *lobbyMenu = NULL;
|
||||||
|
|
||||||
switch (type) {
|
switch (type)
|
||||||
|
{
|
||||||
case TYPE_GROUP:
|
case TYPE_GROUP:
|
||||||
{
|
{
|
||||||
bool standard = c->data(COLUMN_DATA, ROLE_STANDARD).toBool();
|
bool standard = c->data(COLUMN_DATA, ROLE_STANDARD).toBool();
|
||||||
@ -448,11 +449,11 @@ void FriendList::peerTreeWidgetCustomPopupMenu()
|
|||||||
contextMenu->addAction(QIcon(IMAGE_EXPORTFRIEND), tr("Recommend this node to..."), this, SLOT(recommendfriend()));
|
contextMenu->addAction(QIcon(IMAGE_EXPORTFRIEND), tr("Recommend this node to..."), this, SLOT(recommendfriend()));
|
||||||
}
|
}
|
||||||
|
|
||||||
contextMenu->addAction(QIcon(IMAGE_CONNECT), tr("Attempt to connect"), this, SLOT(connectfriend()));
|
if(!rsPeers->isHiddenNode(rsPeers->getOwnId()) || rsPeers->isHiddenNode( RsPeerId(getRsId(c)) ))
|
||||||
|
contextMenu->addAction(QIcon(IMAGE_CONNECT), tr("Attempt to connect"), this, SLOT(connectfriend()));
|
||||||
|
|
||||||
contextMenu->addAction(QIcon(IMAGE_COPYLINK), tr("Copy certificate link"), this, SLOT(copyFullCertificate()));
|
contextMenu->addAction(QIcon(IMAGE_COPYLINK), tr("Copy certificate link"), this, SLOT(copyFullCertificate()));
|
||||||
|
|
||||||
|
|
||||||
//this is a SSL key
|
//this is a SSL key
|
||||||
contextMenu->addAction(QIcon(IMAGE_REMOVEFRIEND), tr("Remove Friend Node"), this, SLOT(removefriend()));
|
contextMenu->addAction(QIcon(IMAGE_REMOVEFRIEND), tr("Remove Friend Node"), this, SLOT(removefriend()));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user