mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-21 23:40:26 -04:00
Added new RetroShare link format to start a search
retroshare://search?keywords=... Enabled key "delete" to remove search results. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4185 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
73daae5992
commit
cd8188bf09
18 changed files with 276 additions and 156 deletions
|
@ -1115,8 +1115,10 @@ void TransfersDialog::copyLink ()
|
|||
continue;
|
||||
}
|
||||
|
||||
RetroShareLink link(QString::fromStdString(info.fname), info.size, QString::fromStdString(info.hash));
|
||||
links.push_back(link) ;
|
||||
RetroShareLink link;
|
||||
if (link.createFile(QString::fromStdString(info.fname), info.size, QString::fromStdString(info.hash))) {
|
||||
links.push_back(link) ;
|
||||
}
|
||||
}
|
||||
|
||||
RSLinkClipboard::copyLinks(links) ;
|
||||
|
@ -1224,8 +1226,12 @@ void TransfersDialog::updateDetailsDialog()
|
|||
if (fname.isEmpty()) {
|
||||
detailsdlg->setLink("");
|
||||
} else {
|
||||
RetroShareLink link(fname, filesize, fhash);
|
||||
detailsdlg->setLink(link.toString());
|
||||
RetroShareLink link;
|
||||
if (link.createFile(fname, filesize, fhash)) {
|
||||
detailsdlg->setLink(link.toString());
|
||||
} else {
|
||||
detailsdlg->setLink("");
|
||||
}
|
||||
}
|
||||
|
||||
FileChunksInfo info ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue