1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

try to fix mxe

This commit is contained in:
nordsoft 2022-11-17 04:30:43 +04:00
parent 33575e5ce2
commit ddebf85665
2 changed files with 9 additions and 9 deletions

View File

@ -65,8 +65,8 @@ void Lobby::serverCommand(const ServerCommand & command) try
case SRVERROR:
protocolAssert(args.size());
chatMessage("System error", args[0], true);
if(authentificationStatus == AuthStatus::NONE)
authentificationStatus = AuthStatus::ERROR;
if(authentificationStatus == AuthStatus::AUTH_NONE)
authentificationStatus = AuthStatus::AUTH_ERROR;
break;
case CREATED:
@ -200,10 +200,10 @@ void Lobby::serverCommand(const ServerCommand & command) try
sysMessage("Unknown server command");
}
if(authentificationStatus == AuthStatus::ERROR)
if(authentificationStatus == AuthStatus::AUTH_ERROR)
socketLobby.disconnectServer();
else
authentificationStatus = AuthStatus::OK;
authentificationStatus = AuthStatus::AUTH_OK;
}
catch(const ProtocolError & e)
{
@ -236,7 +236,7 @@ catch(const ProtocolError & e)
void Lobby::onDisconnected()
{
authentificationStatus = AuthStatus::NONE;
authentificationStatus = AuthStatus::AUTH_NONE;
ui->stackedWidget->setCurrentWidget(ui->sessionsPage);
ui->connectButton->setChecked(false);
}
@ -276,7 +276,7 @@ void Lobby::on_connectButton_toggled(bool checked)
{
if(checked)
{
authentificationStatus = AuthStatus::NONE;
authentificationStatus = AuthStatus::AUTH_NONE;
username = ui->userEdit->text();
const int connectionTimeout = settings["launcher"]["connectionTimeout"].Integer();

View File

@ -42,12 +42,12 @@ private:
QString username;
QStringList gameArgs;
enum class AuthStatus
enum AuthStatus
{
NONE, OK, ERROR
AUTH_NONE, AUTH_OK, AUTH_ERROR
};
AuthStatus authentificationStatus = AuthStatus::NONE;
AuthStatus authentificationStatus = AUTH_NONE;
private:
QMap<QString, QString> buildModsMap() const;