forked from qt-creator/qt-creator
TextEditor: Don't let QPlainTextEdit interfere after refactor marker clicked
QPlainTextEdit::mousePressEvent can do various things after the user clicks a refactor marker. We don't want that so if the user hits the refactor marker we return after the callback. Change-Id: I4742136d7319c644eb1ac97e2dbc365e6c670e75 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Artur Twardy
parent
166c7d98f7
commit
ab504f92d7
@@ -7061,8 +7061,10 @@ void TextEditorWidget::mousePressEvent(QMouseEvent *e)
|
||||
|
||||
RefactorMarker refactorMarker = d->m_refactorOverlay->markerAt(e->pos());
|
||||
if (refactorMarker.isValid()) {
|
||||
if (refactorMarker.callback)
|
||||
if (refactorMarker.callback) {
|
||||
refactorMarker.callback(this);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
d->m_linkPressed = d->isMouseNavigationEvent(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user