mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-19 13:36:03 -04:00
removed copy/paste of links of type PERSON in friendlist. This caused confusion and did not provide anything useful since the creation of the full certificate links
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6771 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e21d869006
commit
40ed94f7fb
@ -403,14 +403,14 @@ void FriendList::peerTreeWidgetCostumPopupMenu()
|
||||
if (type == TYPE_SSL) {
|
||||
contextMnu.addAction(QIcon(IMAGE_COPYLINK), tr("Copy certificate link"), this, SLOT(copyFullCertificate()));
|
||||
}
|
||||
if (type == TYPE_GPG) {
|
||||
contextMnu.addAction(QIcon(IMAGE_COPYLINK), tr("Copy RetroShare Link"), this, SLOT(copyLink()));
|
||||
}
|
||||
//if (type == TYPE_GPG) {
|
||||
// contextMnu.addAction(QIcon(IMAGE_COPYLINK), tr("Copy RetroShare Link"), this, SLOT(copyLink()));
|
||||
//}
|
||||
|
||||
QAction *action = contextMnu.addAction(QIcon(IMAGE_PASTELINK), tr("Paste Friend Link"), this, SLOT(pastePerson()));
|
||||
if (RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON) && RSLinkClipboard::empty(RetroShareLink::TYPE_CERTIFICATE)) {
|
||||
QAction *action = contextMnu.addAction(QIcon(IMAGE_PASTELINK), tr("Paste certificate link"), this, SLOT(pastePerson()));
|
||||
|
||||
if (/*RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON) &&*/ RSLinkClipboard::empty(RetroShareLink::TYPE_CERTIFICATE))
|
||||
action->setDisabled(true);
|
||||
}
|
||||
|
||||
if (type == TYPE_GPG) {
|
||||
contextMnu.addAction(QIcon(IMAGE_DENYFRIEND), tr("Deny Friend"), this, SLOT(removefriend()));
|
||||
@ -519,8 +519,8 @@ void FriendList::peerTreeWidgetCostumPopupMenu()
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
QAction *action = contextMnu.addAction(QIcon(IMAGE_PASTELINK), tr("Paste Friend Link"), this, SLOT(pastePerson()));
|
||||
if (RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON) && RSLinkClipboard::empty(RetroShareLink::TYPE_CERTIFICATE)) {
|
||||
QAction *action = contextMnu.addAction(QIcon(IMAGE_PASTELINK), tr("Paste certificate link"), this, SLOT(pastePerson()));
|
||||
if (/*RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON) &&*/ RSLinkClipboard::empty(RetroShareLink::TYPE_CERTIFICATE)) {
|
||||
action->setDisabled(true);
|
||||
}
|
||||
}
|
||||
@ -1338,7 +1338,7 @@ void FriendList::recommendfriend()
|
||||
|
||||
void FriendList::pastePerson()
|
||||
{
|
||||
RSLinkClipboard::process(RetroShareLink::TYPE_PERSON);
|
||||
//RSLinkClipboard::process(RetroShareLink::TYPE_PERSON);
|
||||
RSLinkClipboard::process(RetroShareLink::TYPE_CERTIFICATE);
|
||||
}
|
||||
|
||||
@ -1356,22 +1356,22 @@ void FriendList::copyFullCertificate()
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
}
|
||||
|
||||
void FriendList::copyLink()
|
||||
{
|
||||
QTreeWidgetItem *c = getCurrentPeer();
|
||||
|
||||
if (c == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
QList<RetroShareLink> urls;
|
||||
RetroShareLink link;
|
||||
if (link.createPerson(getRsId(c))) {
|
||||
urls.push_back(link);
|
||||
}
|
||||
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
}
|
||||
// void FriendList::copyLink()
|
||||
// {
|
||||
// QTreeWidgetItem *c = getCurrentPeer();
|
||||
//
|
||||
// if (c == NULL) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// QList<RetroShareLink> urls;
|
||||
// RetroShareLink link;
|
||||
// if (link.createPerson(getRsId(c))) {
|
||||
// urls.push_back(link);
|
||||
// }
|
||||
//
|
||||
// RSLinkClipboard::copyLinks(urls);
|
||||
// }
|
||||
|
||||
/**
|
||||
* Find out which group is selected
|
||||
|
@ -140,7 +140,7 @@ private slots:
|
||||
void configurefriend();
|
||||
void chatfriend(QTreeWidgetItem *);
|
||||
void chatfriendproxy();
|
||||
void copyLink();
|
||||
//void copyLink();
|
||||
void copyFullCertificate();
|
||||
// void exportfriend();
|
||||
void addFriend();
|
||||
|
Loading…
x
Reference in New Issue
Block a user