summaryrefslogtreecommitdiff
path: root/src/gui/changeemaildialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-01 12:48:28 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-01 12:48:28 -0600
commitda61b7e9cb40e75ad0d74cc64853bf1b08d0a031 (patch)
treea1d5157ac530b42ce4ca2c316fcaa419cc23c01c /src/gui/changeemaildialog.cpp
parent83fd36204202b4b5cca7e6cdb37c025919f32f08 (diff)
downloadmana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.gz
mana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.bz2
mana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.tar.xz
mana-client-da61b7e9cb40e75ad0d74cc64853bf1b08d0a031.zip
Finish merging registration dialog
Diffstat (limited to 'src/gui/changeemaildialog.cpp')
-rw-r--r--src/gui/changeemaildialog.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/changeemaildialog.cpp b/src/gui/changeemaildialog.cpp
index eb05e25e..62d2a3f7 100644
--- a/src/gui/changeemaildialog.cpp
+++ b/src/gui/changeemaildialog.cpp
@@ -39,10 +39,11 @@
#include <string>
#include <sstream>
+std::string *ChangeEmailDialog::emailPointer = NULL;
+
ChangeEmailDialog::ChangeEmailDialog(Window *parent, LoginData *loginData):
Window(_("Change Email Address"), true, parent),
- mWrongDataNoticeListener(new WrongDataNoticeListener),
- mLoginData(loginData)
+ mWrongDataNoticeListener(new WrongDataNoticeListener)
{
gcn::Label *accountLabel = new Label(strprintf(_("Account: %s"),
mLoginData->username.c_str()));
@@ -159,10 +160,15 @@ ChangeEmailDialog::action(const gcn::ActionEvent &event)
// No errors detected, change account password.
mChangeEmailButton->setEnabled(false);
// Set the new email address
- mLoginData->newEmail = newFirstEmail;
+ *emailPointer = newFirstEmail;
state = STATE_CHANGEEMAIL_ATTEMPT;
scheduleDelete();
}
}
}
+
+void ChangeEmailDialog::setEmail(std::string *email)
+{
+ emailPointer = email;
+}