mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
Improved login error message
This commit is contained in:
parent
a6ff54ae0e
commit
beecc0f970
5 changed files with 17 additions and 2 deletions
|
|
@ -361,6 +361,11 @@ void DlgRegister::actOk()
|
|||
QMessageBox::critical(this, tr("Registration Warning"), tr("Your email addresses do not match, please try again."));
|
||||
return;
|
||||
}
|
||||
if(playernameEdit->text().isEmpty())
|
||||
{
|
||||
QMessageBox::critical(this, tr("Registration Warning"), tr("The player name can't be empty."));
|
||||
return;
|
||||
}
|
||||
|
||||
settingsCache->servers().setHostName(hostEdit->text());
|
||||
settingsCache->servers().setPort(portEdit->text());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue