summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2011-04-27 09:25:16 +0200
committercon <qtc-committer@nokia.com>2011-04-27 09:25:16 +0200
commita130ebf4131f13c30206d01731c62c4f530a3e69 (patch)
tree60f9f2938259e9086da5f3652994647b90cf8f6f
parentfc46f300201a98664f7dc403ac4a51e35e536e8d (diff)
downloadqt-creator-a130ebf4131f13c30206d01731c62c4f530a3e69.tar.gz
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
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index c66228a7e6..ef384da6df 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;