From ddb961fad5532a33bbd3771fbac840a1d9450d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 6 Jan 2014 00:33:16 +0100 Subject: Scroll console window for <= lines above the bottom instead of the very bottom. --- gui/ConsoleWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gui/ConsoleWindow.cpp') diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp index e640d261..e7ac6008 100644 --- a/gui/ConsoleWindow.cpp +++ b/gui/ConsoleWindow.cpp @@ -78,8 +78,7 @@ void ConsoleWindow::write(QString data, MessageLevel::Enum mode) int val_bar = bar->value(); if(m_scroll_active) { - if(m_last_scroll_value > val_bar) - m_scroll_active = false; + m_scroll_active = (max_bar - val_bar) <= 1; } else { -- cgit v1.2.3