summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-06 00:33:16 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-06 00:33:16 +0100
commitddb961fad5532a33bbd3771fbac840a1d9450d06 (patch)
tree48c5ebc772bc5d61125e893a142055f10da7ad5e
parent51817962aa64bc5c084e33fb29a21261d19bc8f3 (diff)
downloadMultiMC-ddb961fad5532a33bbd3771fbac840a1d9450d06.tar
MultiMC-ddb961fad5532a33bbd3771fbac840a1d9450d06.tar.gz
MultiMC-ddb961fad5532a33bbd3771fbac840a1d9450d06.tar.lz
MultiMC-ddb961fad5532a33bbd3771fbac840a1d9450d06.tar.xz
MultiMC-ddb961fad5532a33bbd3771fbac840a1d9450d06.zip
Scroll console window for <= lines above the bottom instead of the very bottom.
-rw-r--r--gui/ConsoleWindow.cpp3
1 files changed, 1 insertions, 2 deletions
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
{