diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-21 22:00:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-21 22:00:30 +0300 |
commit | 76dc498cd50fb5bc83b3d0a165df17781af35979 (patch) | |
tree | 6513853d484fa36e282afc2865e8e98f69100aeb /src/client.cpp | |
parent | ba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff) | |
download | manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2 manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz manaplus-76dc498cd50fb5bc83b3d0a165df17781af35979.zip |
Call postInit after each window creation.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 615fcd169..b23ddd11d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1398,6 +1398,7 @@ int Client::gameExec() ShowCenter_true, nullptr, 260); + mCurrentDialog->postInit(); mCurrentDialog->addActionListener(&loginListener); mCurrentDialog = nullptr; // OkDialog deletes itself BLOCK_END("Client::gameExec STATE_LOGIN_ERROR") @@ -1416,6 +1417,7 @@ int Client::gameExec() ShowCenter_true, nullptr, 260); + mCurrentDialog->postInit(); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself BLOCK_END("Client::gameExec STATE_ACCOUNTCHANGE_ERROR") @@ -1449,6 +1451,7 @@ int Client::gameExec() BLOCK_START("Client::gameExec STATE_CHANGEPASSWORD") logger->log1("State: CHANGE PASSWORD"); mCurrentDialog = new ChangePasswordDialog(&loginData); + mCurrentDialog->postInit(); mCurrentDialog->setVisible(true); BLOCK_END("Client::gameExec STATE_CHANGEPASSWORD") break; @@ -1477,6 +1480,7 @@ int Client::gameExec() ShowCenter_true, nullptr, 260); + mCurrentDialog->postInit(); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself loginData.password = loginData.newPassword; @@ -1487,6 +1491,7 @@ int Client::gameExec() case STATE_CHANGEEMAIL: logger->log1("State: CHANGE EMAIL"); mCurrentDialog = new ChangeEmailDialog(&loginData); + mCurrentDialog->postInit(); mCurrentDialog->setVisible(true); break; @@ -1508,6 +1513,7 @@ int Client::gameExec() ShowCenter_true, nullptr, 260); + mCurrentDialog->postInit(); mCurrentDialog->addActionListener(&accountListener); mCurrentDialog = nullptr; // OkDialog deletes itself break; |