diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-07 15:31:54 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-07 15:31:54 -0600 |
commit | 11b3ff85e9dc8f39ddcfdff511c6340b899ba414 (patch) | |
tree | a63ab360f58ac4e76066b1969e75a6e53a49a000 /src/gui/changeemaildialog.cpp | |
parent | f708a9bf4aeff8781ec5697ff3936e5791a9137a (diff) | |
download | mana-client-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.tar.gz mana-client-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.tar.bz2 mana-client-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.tar.xz mana-client-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.zip |
Clean up state machine some more
Diffstat (limited to 'src/gui/changeemaildialog.cpp')
-rw-r--r-- | src/gui/changeemaildialog.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/changeemaildialog.cpp b/src/gui/changeemaildialog.cpp index 45dcc5f8..f536bd4f 100644 --- a/src/gui/changeemaildialog.cpp +++ b/src/gui/changeemaildialog.cpp @@ -39,8 +39,8 @@ #include <string> #include <sstream> -ChangeEmailDialog::ChangeEmailDialog(Window *parent, LoginData *loginData): - Window(_("Change Email Address"), true, parent), +ChangeEmailDialog::ChangeEmailDialog(LoginData *loginData): + Window(_("Change Email Address"), true), mWrongDataNoticeListener(new WrongDataNoticeListener), mLoginData(loginData) { @@ -85,7 +85,7 @@ ChangeEmailDialog::ChangeEmailDialog(Window *parent, LoginData *loginData): add(mChangeEmailButton); add(mCancelButton); - setLocationRelativeTo(getParent()); + center(); setVisible(true); mFirstEmailField->requestFocus(); @@ -102,7 +102,7 @@ void ChangeEmailDialog::action(const gcn::ActionEvent &event) { if (event.getId() == "cancel") { - scheduleDelete(); + state = STATE_CHAR_SELECT; } else if (event.getId() == "change_email") { @@ -160,7 +160,6 @@ void ChangeEmailDialog::action(const gcn::ActionEvent &event) // Set the new email address mLoginData->email = newFirstEmail; state = STATE_CHANGEEMAIL_ATTEMPT; - scheduleDelete(); } } } |