aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2010-06-01 12:39:08 +0200
committerhjk <qtc-committer@nokia.com>2010-06-01 14:37:03 +0200
commitaedfa4a60725b3fa5a5601311ed2ede3b9bad250 (patch)
treedc0bb1a90e1fa32ac51c2b5a7f677462015ea0fc
parented190d45031c6bc98ccec1f86651bd8ae6de06cb (diff)
Fixed line select in gutter when text marks are not visible
The ProjectFilesEditor used for editing the generic project's files does not show text marks, which broke the line select in the gutter. Task-number: QTCREATORBUG-1238 Reviewed-by: mae (cherry picked from commit 2641496a997ca3ab22cf29bd6ac0ef36f12a046e)
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 2f7b32c918..efcca4be83 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -3547,7 +3547,7 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
toggleBlockVisible(c);
d->moveCursorVisible(false);
}
- } else if (d->m_marksVisible && e->pos().x() > markWidth) {
+ } else if (e->pos().x() > markWidth) {
QTextCursor selection = cursor;
selection.setVisualNavigation(true);
d->extraAreaSelectionAnchorBlockNumber = selection.blockNumber();