From 48675f00d065739d08854f8bf1a36bb87758e7db Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Sat, 22 Aug 2020 15:17:48 -0500 Subject: [PATCH] Fix upward log scrolling down instead of up Stop using upwards log. Seriously. No other program does this. --- src/courtroom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 2484bcb..04c625f 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -2660,7 +2660,8 @@ void Courtroom::append_ic_text(QString p_text, QString p_name, QString p_action, // scroll to the bottom. ui_ic_chatlog->moveCursor(log_goes_downwards ? QTextCursor::End : QTextCursor::Start); ui_ic_chatlog->verticalScrollBar()->setValue( - ui_ic_chatlog->verticalScrollBar()->maximum()); + log_goes_downwards ? ui_ic_chatlog->verticalScrollBar()->maximum() + : 0); } }