summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 20:59:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-17 21:17:12 +0300
commit2d78c7477a7289f63a9709a616c2f49e4b795fa5 (patch)
tree18331f346a1aef40e7e316d1701d296d7dabe3ef
parent38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb (diff)
downloadmv-2d78c7477a7289f63a9709a616c2f49e4b795fa5.tar.gz
mv-2d78c7477a7289f63a9709a616c2f49e4b795fa5.tar.bz2
mv-2d78c7477a7289f63a9709a616c2f49e4b795fa5.tar.xz
mv-2d78c7477a7289f63a9709a616c2f49e4b795fa5.zip
dont use virtual function in changepassworddialog constructor.
-rw-r--r--src/client.cpp1
-rw-r--r--src/gui/windows/changepassworddialog.cpp1
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");