diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-16 22:35:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-16 22:35:17 +0300 |
commit | b3d17866a3c5700b52c2b0b954fce132a52c1dbf (patch) | |
tree | 7ba07c98a1842eb766de35e172f559dcf5ac6fb4 /src/gui/windows/charselectdialog.cpp | |
parent | 5e8e53f6e795a84ab5ca6cfe0d08672878044707 (diff) | |
download | mv-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.gz mv-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.bz2 mv-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.tar.xz mv-b3d17866a3c5700b52c2b0b954fce132a52c1dbf.zip |
Convert State enum into strong typed.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 8 |
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(); } |