summaryrefslogtreecommitdiff
path: root/src/gui/changepassworddialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-07 15:31:54 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-07 15:31:54 -0600
commit11b3ff85e9dc8f39ddcfdff511c6340b899ba414 (patch)
treea63ab360f58ac4e76066b1969e75a6e53a49a000 /src/gui/changepassworddialog.cpp
parentf708a9bf4aeff8781ec5697ff3936e5791a9137a (diff)
downloadmana-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.cpp10
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();
}
}
}