Fix upward log scrolling down instead of up

Stop using upwards log. Seriously. No other program does this.
This commit is contained in:
oldmud0 2020-08-22 15:17:48 -05:00
parent 2c6a690d47
commit 48675f00d0

View File

@ -2660,7 +2660,8 @@ void Courtroom::append_ic_text(QString p_text, QString p_name, QString p_action,
// scroll to the bottom. // scroll to the bottom.
ui_ic_chatlog->moveCursor(log_goes_downwards ? QTextCursor::End : QTextCursor::Start); ui_ic_chatlog->moveCursor(log_goes_downwards ? QTextCursor::End : QTextCursor::Start);
ui_ic_chatlog->verticalScrollBar()->setValue( ui_ic_chatlog->verticalScrollBar()->setValue(
ui_ic_chatlog->verticalScrollBar()->maximum()); log_goes_downwards ? ui_ic_chatlog->verticalScrollBar()->maximum()
: 0);
} }
} }