This commit is contained in:
doitux
2007-11-07 21:22:03 +00:00
parent 90de94d221
commit db7b29b400
6 changed files with 35 additions and 50 deletions
+8 -2
View File
@@ -946,7 +946,7 @@ void mainWindowImpl::joinGameLobby() {
myNick.replace(QString::fromUtf8("Ò"),"O");
myNick.replace(QString::fromUtf8("Ú"),"U");
myNick.replace(QString::fromUtf8("Ù"),"U");
myNick.remove(QRegExp("[^A-Z^a-z^0-9|\\-_\\\\^]*"));
myNick.remove(QRegExp("[^A-Z^a-z^0-9|\\-_\\\\^`]*"));
myNick = myNick.mid(0,16);
mySession->setIrcNick(myNick.toUtf8().constData());
@@ -1935,6 +1935,11 @@ void mainWindowImpl::meInAction() {
horizontalSlider_bet->setEnabled(TRUE);
spinBox_set->setEnabled(TRUE);
if((mySession->getGameType() == Session::GAME_TYPE_INTERNET || mySession->getGameType() == Session::GAME_TYPE_NETWORK) && lineEdit_ChatInput->text() == "" && myConfig->readConfigInt("EnableBetInputFocusSwitch")) {
spinBox_set->setFocus();
spinBox_set->selectAll();
}
myActionIsRaise = 0;
myActionIsBet = 0;
@@ -2024,10 +2029,11 @@ void mainWindowImpl::myBetRaise() {
}
else {}
if(lineEdit_ChatInput->text() == "" && !myConfig->readConfigInt("DisableBetInputFocusSwitch")) {
if(mySession->getGameType() == Session::GAME_TYPE_LOCAL) {
spinBox_set->setFocus();
spinBox_set->selectAll();
}
}
void mainWindowImpl::myCallCheck() {