mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 04:22:27 -04:00
Fixed sensitivity of the action in the context menu to copy a link from the chat text when scrollbars are visible.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5608 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9f1b19bd98
commit
b40a716e87
2 changed files with 10 additions and 4 deletions
|
@ -415,12 +415,15 @@ void ChatWidget::contextMenu(QPoint point)
|
|||
|
||||
void ChatWidget::contextMenuTextBrowser(QPoint point)
|
||||
{
|
||||
QMenu *contextMnu = ui->textBrowser->createStandardContextMenu(point);
|
||||
QMatrix matrix;
|
||||
matrix.translate(ui->textBrowser->horizontalScrollBar()->value(), ui->textBrowser->verticalScrollBar()->value());
|
||||
|
||||
QMenu *contextMnu = ui->textBrowser->createStandardContextMenu(matrix.map(point));
|
||||
|
||||
contextMnu->addSeparator();
|
||||
contextMnu->addAction(ui->actionClearChatHistory);
|
||||
|
||||
contextMnu->exec(QCursor::pos());
|
||||
contextMnu->exec(ui->textBrowser->viewport()->mapToGlobal(point));
|
||||
delete(contextMnu);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue