From a130ebf4131f13c30206d01731c62c4f530a3e69 Mon Sep 17 00:00:00 2001 From: con Date: Wed, 27 Apr 2011 09:25:16 +0200 Subject: [PATCH] Debug views menu would show after using the text marker menu. The right-click event that is handled by the extra text area for the marker menu needs to be accepted, so it's not propagated further as a context menu event. Reviewed-by: Friedemann Kleint --- src/plugins/texteditor/basetexteditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index c66228a7e60..ef384da6dfb 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -4269,6 +4269,7 @@ void BaseTextEditorWidget::extraAreaMouseEvent(QMouseEvent *e) if (!contextMenu->isEmpty()) contextMenu->exec(e->globalPos()); delete contextMenu; + e->accept(); } } else if (d->extraAreaSelectionAnchorBlockNumber >= 0) { QTextCursor selection = cursor;