mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 10:56:11 +00:00
Only jump to reference when double-clicking with left mouse button. (#3174)
This commit is contained in:
parent
8c89dfde8b
commit
882f340481
@ -623,10 +623,12 @@ bool DisassemblyWidget::eventFilter(QObject *obj, QEvent *event)
|
||||
&& (obj == mDisasTextEdit || obj == mDisasTextEdit->viewport())) {
|
||||
QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
|
||||
|
||||
if (mouseEvent->button() == Qt::LeftButton) {
|
||||
const QTextCursor &cursor = mDisasTextEdit->cursorForPosition(mouseEvent->pos());
|
||||
jumpToOffsetUnderCursor(cursor);
|
||||
|
||||
return true;
|
||||
}
|
||||
} else if (Config()->getPreviewValue()
|
||||
&& event->type() == QEvent::ToolTip
|
||||
&& obj == mDisasTextEdit->viewport()) {
|
||||
|
Loading…
Reference in New Issue
Block a user