diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2020-08-22 16:07:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-22 16:07:36 -0500 |
| commit | 9f4487d9cfff049f94bcfdc4c03de831ddce39fb (patch) | |
| tree | 028964729fad410d265bc9149d08cf413b348644 /src/courtroom.cpp | |
| parent | 2c6a690d47ca0c48bef84b3d28d58064365a9934 (diff) | |
| parent | 8dcddf289f2528d8720e89c05857969c721ed559 (diff) | |
Merge pull request #271 from AttorneyOnline/2.8.5-hotfix
2.8.5 hotfixes
Diffstat (limited to 'src/courtroom.cpp')
| -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 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); } } |
