Fix upward log scrolling down instead of up
Stop using upwards log. Seriously. No other program does this.
This commit is contained in:
		
							parent
							
								
									2c6a690d47
								
							
						
					
					
						commit
						48675f00d0
					
				@ -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);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user