fixed gui bug for multiple internetgames (chat_tab)

This commit is contained in:
doitux
2007-10-11 00:30:52 +00:00
parent 9f478855db
commit 5a7ae2c586
3 changed files with 9 additions and 9 deletions
@@ -560,7 +560,7 @@ void gameLobbyDialogImpl::keyPressEvent ( QKeyEvent * event ) {
myChat->showChatHistoryIndex(keyUpCounter);
}
else if(event->key() == Qt::Key_Down && lineEdit_ChatInput->hasFocus()) {
if((keyUpCounter - 1) > 0) { keyUpCounter--; }
if((keyUpCounter - 1) >= 0) { keyUpCounter--; }
// std::cout << "Down keyUpCounter: " << keyUpCounter << "\n";
myChat->showChatHistoryIndex(keyUpCounter);
}