Enabled the menu item in the context menu again to copy the link when right clicking on a link.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5522 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-09-07 21:28:25 +00:00
parent 3d341b3817
commit fb389f6116
5 changed files with 14 additions and 14 deletions

View file

@ -377,11 +377,11 @@ void ChatWidget::pasteOwnCertificateLink()
}
}
void ChatWidget::contextMenu(QPoint /*point*/)
void ChatWidget::contextMenu(QPoint point)
{
std::cerr << "In context menu" << std::endl;
QMenu *contextMnu = ui->chatTextEdit->createStandardContextMenu();
QMenu *contextMnu = ui->chatTextEdit->createStandardContextMenu(point);
contextMnu->addSeparator();
QAction *action = contextMnu->addAction(QIcon(":/images/pasterslink.png"), tr("Paste RetroShare Link"), this, SLOT(pasteLink()));
@ -392,9 +392,9 @@ void ChatWidget::contextMenu(QPoint /*point*/)
delete(contextMnu);
}
void ChatWidget::contextMenuTextBrowser(QPoint)
void ChatWidget::contextMenuTextBrowser(QPoint point)
{
QMenu *contextMnu = ui->textBrowser->createStandardContextMenu();
QMenu *contextMnu = ui->textBrowser->createStandardContextMenu(point);
contextMnu->addSeparator();
contextMnu->addAction(ui->actionClearChatHistory);