summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 22:35:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 22:35:17 +0300
commitb3d17866a3c5700b52c2b0b954fce132a52c1dbf (patch)
tree7ba07c98a1842eb766de35e172f559dcf5ac6fb4 /src/gui/windows/charselectdialog.cpp
parent5e8e53f6e795a84ab5ca6cfe0d08672878044707 (diff)
downloadManaVerse-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.gz
ManaVerse-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.bz2
ManaVerse-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.xz
ManaVerse-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.zip
Convert State enum into strong typed.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index ca15caf97..8f7c44d66 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -268,16 +268,16 @@ void CharSelectDialog::action(const ActionEvent &event)
}
else if (eventId == "change_password")
{
- client->setState(STATE_CHANGEPASSWORD);
+ client->setState(State::CHANGEPASSWORD);
}
else if (eventId == "change_email")
{
- client->setState(STATE_CHANGEEMAIL);
+ client->setState(State::CHANGEEMAIL);
}
else if (eventId == "unregister")
{
charServerHandler->clear();
- client->setState(STATE_UNREGISTER);
+ client->setState(State::UNREGISTER);
}
else if (eventId == "try delete character")
{
@@ -572,7 +572,7 @@ bool CharSelectDialog::selectByName(const std::string &name,
void CharSelectDialog::close()
{
- client->setState(STATE_SWITCH_LOGIN);
+ client->setState(State::SWITCH_LOGIN);
Window::close();
}