From 7c147dccc6ed3ea7cdbd4da959593e1ab6d98ad9 Mon Sep 17 00:00:00 2001 From: doitux Date: Mon, 28 May 2007 21:21:48 +0000 Subject: [PATCH] --- src/gui/qt/mainwindow/mainwindowimpl.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index ad013e74..9bf62ce2 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -2434,19 +2434,12 @@ void mainWindowImpl::networkError(int errorID, int osErrorID) { QMessageBox::Close); } break; case ERR_NET_PLAYER_NAME_IN_USE: - { /*QMessageBox::warning(this, tr("Network Error"), - tr("Your player name is already used by another player.\nPlease choose a different name."), - QMessageBox::Close);*/ - - myChangeHumanPlayerNameDialog->label_Message->setText(tr("Your player name is already used by another player.\nPlease choose a different name.")); - myChangeHumanPlayerNameDialog->exec(); - - } + { myChangeHumanPlayerNameDialog->label_Message->setText(tr("Your player name is already used by another player.\nPlease choose a different name.")); + myChangeHumanPlayerNameDialog->exec(); } break; case ERR_NET_INVALID_PLAYER_NAME: - { QMessageBox::warning(this, tr("Network Error"), - tr("The player name is either too short or too long. Please choose another one."), - QMessageBox::Close); } + { myChangeHumanPlayerNameDialog->label_Message->setText(tr("The player name is either too short or too long. Please choose another one.")); + myChangeHumanPlayerNameDialog->exec(); } break; default: { QMessageBox::warning(this, tr("Network Error"), tr("An internal error occured."),