forked from qt-creator/qt-creator
Scroll Application Output to end also for project explorer messages.
Task-number: QTCREATORBUG-1405 Reviewed-by: dt
This commit is contained in:
@@ -487,7 +487,10 @@ void OutputWindow::appendApplicationOutputInline(const QString &out, bool onStdE
|
|||||||
void OutputWindow::appendMessage(const QString &out, bool isError)
|
void OutputWindow::appendMessage(const QString &out, bool isError)
|
||||||
{
|
{
|
||||||
setMaximumBlockCount(MaxBlockCount);
|
setMaximumBlockCount(MaxBlockCount);
|
||||||
|
const bool atBottom = isScrollbarAtBottom();
|
||||||
m_formatter->appendMessage(doNewlineEnfocement(out), isError);
|
m_formatter->appendMessage(doNewlineEnfocement(out), isError);
|
||||||
|
if (atBottom)
|
||||||
|
scrollToBottom();
|
||||||
enableUndoRedo();
|
enableUndoRedo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user