NetworkMessage: create ErrorManager class to provide a context to tr
This commit is contained in:
parent
d7f6cc3951
commit
c9b6233f59
7 changed files with 82 additions and 73 deletions
|
@ -128,7 +128,7 @@ void Lobby::OnJoinRoom(const QModelIndex& source) {
|
|||
index = source.parent();
|
||||
}
|
||||
if (!ui->nickname->hasAcceptableInput()) {
|
||||
NetworkMessage::ShowError(NetworkMessage::USERNAME_NOT_VALID);
|
||||
NetworkMessage::ErrorManager::ShowError(NetworkMessage::ErrorManager::USERNAME_NOT_VALID);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue