Bump to 2.4.10, autoscrolling bug fixes
This commit is contained in:
		
							parent
							
								
									3129d2aded
								
							
						
					
					
						commit
						22fd5f2804
					
				@ -13,7 +13,7 @@ RC_ICONS = logo.ico
 | 
				
			|||||||
TARGET = Attorney_Online_remake
 | 
					TARGET = Attorney_Online_remake
 | 
				
			||||||
TEMPLATE = app
 | 
					TEMPLATE = app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VERSION = 2.4.9.0
 | 
					VERSION = 2.4.10.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SOURCES += main.cpp\
 | 
					SOURCES += main.cpp\
 | 
				
			||||||
        lobby.cpp \
 | 
					        lobby.cpp \
 | 
				
			||||||
 | 
				
			|||||||
@ -225,7 +225,7 @@ public:
 | 
				
			|||||||
private:
 | 
					private:
 | 
				
			||||||
  const int RELEASE = 2;
 | 
					  const int RELEASE = 2;
 | 
				
			||||||
  const int MAJOR_VERSION = 4;
 | 
					  const int MAJOR_VERSION = 4;
 | 
				
			||||||
  const int MINOR_VERSION = 9;
 | 
					  const int MINOR_VERSION = 10;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  QString current_theme = "default";
 | 
					  QString current_theme = "default";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1174,8 +1174,14 @@ void Courtroom::append_ic_text(QString p_text, QString p_name)
 | 
				
			|||||||
  else
 | 
					  else
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
      // The user hasn't selected any text and the scrollbar is at the top: scroll to the top.
 | 
					      // The user hasn't selected any text and the scrollbar is at the top: scroll to the top.
 | 
				
			||||||
      ui_ic_chatlog->moveCursor(move_op);
 | 
					      if(ao_app->ic_scroll_down_enabled()) {
 | 
				
			||||||
      ui_ic_chatlog->verticalScrollBar()->setValue(scrollbar_limit);
 | 
					        ui_ic_chatlog->moveCursor(QTextCursor::End);
 | 
				
			||||||
 | 
					        ui_ic_chatlog->verticalScrollBar()->setValue(ui_ic_chatlog->verticalScrollBar()->maximum());
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      else {
 | 
				
			||||||
 | 
					        ui_ic_chatlog->moveCursor(QTextCursor::Start);
 | 
				
			||||||
 | 
					        ui_ic_chatlog->verticalScrollBar()->setValue(ui_ic_chatlog->verticalScrollBar()->minimum());
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user