mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
3 patches from AsamK:
* fixed utf8 in dropping links to channels * fixed pasting cert links in the friend list * added code to allow pasting GPG certificates missing a newline at the end. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5064 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
08a52dc369
commit
0778e8f691
8 changed files with 34 additions and 26 deletions
|
@ -363,7 +363,7 @@ void FriendList::peerTreeWidgetCostumPopupMenu()
|
|||
}
|
||||
|
||||
QAction *action = contextMnu.addAction(QIcon(IMAGE_PASTELINK), tr("Paste Friend Link"), this, SLOT(pastePerson()));
|
||||
if (RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON)) {
|
||||
if (RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON) && RSLinkClipboard::empty(RetroShareLink::TYPE_CERTIFICATE)) {
|
||||
action->setDisabled(true);
|
||||
}
|
||||
|
||||
|
@ -473,7 +473,7 @@ void FriendList::peerTreeWidgetCostumPopupMenu()
|
|||
}
|
||||
} else {
|
||||
QAction *action = contextMnu.addAction(QIcon(IMAGE_PASTELINK), tr("Paste Friend Link"), this, SLOT(pastePerson()));
|
||||
if (RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON)) {
|
||||
if (RSLinkClipboard::empty(RetroShareLink::TYPE_PERSON) && RSLinkClipboard::empty(RetroShareLink::TYPE_CERTIFICATE)) {
|
||||
action->setDisabled(true);
|
||||
}
|
||||
}
|
||||
|
@ -1271,6 +1271,7 @@ void FriendList::recommendfriend()
|
|||
void FriendList::pastePerson()
|
||||
{
|
||||
RSLinkClipboard::process(RetroShareLink::TYPE_PERSON);
|
||||
RSLinkClipboard::process(RetroShareLink::TYPE_CERTIFICATE);
|
||||
}
|
||||
|
||||
void FriendList::copyFullCertificate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue