diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2020-08-22 15:17:48 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2020-08-22 15:17:48 -0500 |
| commit | 48675f00d065739d08854f8bf1a36bb87758e7db (patch) | |
| tree | 3a8d0db3a0be097e489ff5366693031d8833fff7 | |
| parent | 2c6a690d47ca0c48bef84b3d28d58064365a9934 (diff) | |
Fix upward log scrolling down instead of up
Stop using upwards log. Seriously. No other program does this.
| -rw-r--r-- | src/courtroom.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 2484bcb0..04c625fe 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); } } |
