Scroll console window for <= lines above the bottom instead of the very bottom.

This commit is contained in:
Petr Mrázek 2014-01-06 00:33:16 +01:00
parent 51817962aa
commit ddb961fad5

View File

@ -78,8 +78,7 @@ void ConsoleWindow::write(QString data, MessageLevel::Enum mode)
int val_bar = bar->value(); int val_bar = bar->value();
if(m_scroll_active) if(m_scroll_active)
{ {
if(m_last_scroll_value > val_bar) m_scroll_active = (max_bar - val_bar) <= 1;
m_scroll_active = false;
} }
else else
{ {