diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-17 20:59:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-17 21:17:12 +0300 |
commit | 2d78c7477a7289f63a9709a616c2f49e4b795fa5 (patch) | |
tree | 18331f346a1aef40e7e316d1701d296d7dabe3ef /src | |
parent | 38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb (diff) | |
download | manaplus-2d78c7477a7289f63a9709a616c2f49e4b795fa5.tar.gz manaplus-2d78c7477a7289f63a9709a616c2f49e4b795fa5.tar.bz2 manaplus-2d78c7477a7289f63a9709a616c2f49e4b795fa5.tar.xz manaplus-2d78c7477a7289f63a9709a616c2f49e4b795fa5.zip |
dont use virtual function in changepassworddialog constructor.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 1 | ||||
-rw-r--r-- | src/gui/windows/changepassworddialog.cpp | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index d5e05db2d..290299f58 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1592,6 +1592,7 @@ int Client::gameExec() BLOCK_START("Client::gameExec STATE_CHANGEPASSWORD") logger->log1("State: CHANGE PASSWORD"); mCurrentDialog = new ChangePasswordDialog(&loginData); + mCurrentDialog->setVisible(true); BLOCK_END("Client::gameExec STATE_CHANGEPASSWORD") break; diff --git a/src/gui/windows/changepassworddialog.cpp b/src/gui/windows/changepassworddialog.cpp index 5d520e95f..59e95be4b 100644 --- a/src/gui/windows/changepassworddialog.cpp +++ b/src/gui/windows/changepassworddialog.cpp @@ -75,7 +75,6 @@ ChangePasswordDialog::ChangePasswordDialog(LoginData *const data): reflowLayout(200); center(); - setVisible(true); mOldPassField->requestFocus(); mOldPassField->setActionEventId("change_password"); |