diff options
author | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-05-07 12:59:01 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@theqtcompany.com> | 2015-05-07 12:29:50 +0000 |
commit | d2bb73ffb287e54854696ef9fa684696593dbeea (patch) | |
tree | 4d87ffb7e7bced0e89d31c56fb7f81c4897aa934 /src/plugins/coreplugin/outputwindow.cpp | |
parent | d1ab9cdcbe64e48dff04218307319b7f6e74d8a5 (diff) | |
download | qt-creator-d2bb73ffb287e54854696ef9fa684696593dbeea.tar.gz |
ProjectExplorer: Fix to eager clearing of output window
The window was cleared even if the option to clear it wasn't
selected. Moving the cursor to the end, has the side effect of
clearing the selection, so do that always.
Change-Id: I6b61981f46394c61e61066aa8033c7e3391e6c07
Task-number: QTCREATORBUG-14410
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/outputwindow.cpp')
-rw-r--r-- | src/plugins/coreplugin/outputwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/outputwindow.cpp b/src/plugins/coreplugin/outputwindow.cpp index 030857a763..e19505fd44 100644 --- a/src/plugins/coreplugin/outputwindow.cpp +++ b/src/plugins/coreplugin/outputwindow.cpp @@ -347,8 +347,7 @@ void OutputWindow::grayOutOldContent() (bkgFactor * bkgColor.blue() + fgdFactor * fgdColor.blue()) )); d->cursor.mergeCharFormat(format); - if (!d->cursor.atEnd()) - d->cursor.movePosition(QTextCursor::End); + d->cursor.movePosition(QTextCursor::End); d->cursor.setCharFormat(endFormat); d->cursor.insertBlock(QTextBlockFormat()); } |