diff options
author | David Schulz <david.schulz@digia.com> | 2014-09-24 15:04:09 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@digia.com> | 2014-09-24 15:30:39 +0200 |
commit | bc30d602aa361a83975055c8f0dfb042943c81da (patch) | |
tree | d63a2d5264c86eab0de11e7149a9a6f483e4b6f0 /src/plugins | |
parent | 92f94ab4b1cc49d2c4a1a3eb2184c65fb7793f0a (diff) | |
download | qt-creator-bc30d602aa361a83975055c8f0dfb042943c81da.tar.gz |
TextEditor: Only disable block selection when we have one.
This reduces unnecessary calls to ensureCursorVisible.
Task-number: QTCREATORBUG-12860
Change-Id: Iaf59642f3cee645f75d5319d3f6adc236b3f2ee2
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/texteditor/basetexteditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index c32bcc9105..7f2ee7cdd9 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -5862,7 +5862,8 @@ void BaseTextEditorWidget::cut() void BaseTextEditorWidget::selectAll() { - d->disableBlockSelection(); + if (d->m_inBlockSelectionMode) + d->disableBlockSelection(); QPlainTextEdit::selectAll(); } |