From c2a7004213529c403faeb6fdcc374699aa2f53b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 22:00:27 +0300 Subject: improve getState/setState in Client. --- src/gui/changepassworddialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/changepassworddialog.cpp') diff --git a/src/gui/changepassworddialog.cpp b/src/gui/changepassworddialog.cpp index 84b21da8b..c337dccdf 100644 --- a/src/gui/changepassworddialog.cpp +++ b/src/gui/changepassworddialog.cpp @@ -94,7 +94,7 @@ void ChangePasswordDialog::action(const gcn::ActionEvent &event) const std::string &eventId = event.getId(); if (eventId == "cancel") { - Client::setState(STATE_CHAR_SELECT); + client->setState(STATE_CHAR_SELECT); } else if (eventId == "change_password") { @@ -166,7 +166,7 @@ void ChangePasswordDialog::action(const gcn::ActionEvent &event) // Set the new password mLoginData->password = oldPassword; mLoginData->newPassword = newFirstPass; - Client::setState(STATE_CHANGEPASSWORD_ATTEMPT); + client->setState(STATE_CHANGEPASSWORD_ATTEMPT); } } } -- cgit v1.2.3-70-g09d2