forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -347,7 +347,6 @@ void OutputWindow::grayOutOldContent()
|
|||||||
(bkgFactor * bkgColor.blue() + fgdFactor * fgdColor.blue()) ));
|
(bkgFactor * bkgColor.blue() + fgdFactor * fgdColor.blue()) ));
|
||||||
d->cursor.mergeCharFormat(format);
|
d->cursor.mergeCharFormat(format);
|
||||||
|
|
||||||
if (!d->cursor.atEnd())
|
|
||||||
d->cursor.movePosition(QTextCursor::End);
|
d->cursor.movePosition(QTextCursor::End);
|
||||||
d->cursor.setCharFormat(endFormat);
|
d->cursor.setCharFormat(endFormat);
|
||||||
d->cursor.insertBlock(QTextBlockFormat());
|
d->cursor.insertBlock(QTextBlockFormat());
|
||||||
|
Reference in New Issue
Block a user