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/changepassworddialog.cpp | |
parent | f708a9bf4aeff8781ec5697ff3936e5791a9137a (diff) | |
download | mana-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.tar.gz mana-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.tar.bz2 mana-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.tar.xz mana-11b3ff85e9dc8f39ddcfdff511c6340b899ba414.zip |
Clean up state machine some more
Diffstat (limited to 'src/gui/changepassworddialog.cpp')
-rw-r--r-- | src/gui/changepassworddialog.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/changepassworddialog.cpp b/src/gui/changepassworddialog.cpp index cabccc8f..0ad9071a 100644 --- a/src/gui/changepassworddialog.cpp +++ b/src/gui/changepassworddialog.cpp @@ -41,9 +41,8 @@ #include <string> #include <sstream> -ChangePasswordDialog::ChangePasswordDialog(Window *parent, - LoginData *loginData): - Window(_("Change Password"), true, parent), +ChangePasswordDialog::ChangePasswordDialog(LoginData *loginData): + Window(_("Change Password"), true), mWrongDataNoticeListener(new WrongDataNoticeListener), mLoginData(loginData) { @@ -66,7 +65,7 @@ ChangePasswordDialog::ChangePasswordDialog(Window *parent, place(2, 6, mChangePassButton); reflowLayout(200); - setLocationRelativeTo(getParent()); + center(); setVisible(true); mOldPassField->requestFocus(); @@ -84,7 +83,7 @@ void ChangePasswordDialog::action(const gcn::ActionEvent &event) { if (event.getId() == "cancel") { - scheduleDelete(); + state = STATE_CHAR_SELECT; } else if (event.getId() == "change_password") { @@ -154,7 +153,6 @@ void ChangePasswordDialog::action(const gcn::ActionEvent &event) mLoginData->password = oldPassword; mLoginData->newPassword = newFirstPass; state = STATE_CHANGEPASSWORD_ATTEMPT; - scheduleDelete(); } } } |