forked from qt-creator/qt-creator
DiffEditor: double click doesn't select the current word
Task-number: QTCREATORBUG-9381 Change-Id: Icc96c31b029d978c23a44fca59bcc28891fd92c6 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -418,6 +418,8 @@ void DiffViewEditorWidget::mouseDoubleClickEvent(QMouseEvent *e)
|
||||
if (e->button() == Qt::LeftButton && !(e->modifiers() & Qt::ShiftModifier)) {
|
||||
QTextCursor cursor = cursorForPosition(e->pos());
|
||||
jumpToOriginalFile(cursor);
|
||||
e->accept();
|
||||
return;
|
||||
}
|
||||
SnippetEditorWidget::mouseDoubleClickEvent(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user