From 76dc498cd50fb5bc83b3d0a165df17781af35979 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 May 2015 22:00:30 +0300 Subject: Call postInit after each window creation. --- src/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client.cpp') 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; -- cgit v1.2.3-70-g09d2