summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-17 20:57:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-17 21:17:12 +0300
commit38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb (patch)
tree4d9a586264126601cf9b649f975962481f5a7893 /src
parent5eeef71adcafe98dade6cc9d0c47a5260528592d (diff)
downloadplus-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.tar.gz
plus-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.tar.bz2
plus-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.tar.xz
plus-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.zip
dont use virtual function in changeemaildialog constructor.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp1
-rw-r--r--src/gui/windows/changeemaildialog.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index db0a6c2ab..d5e05db2d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1622,6 +1622,7 @@ int Client::gameExec()
case STATE_CHANGEEMAIL:
logger->log1("State: CHANGE EMAIL");
mCurrentDialog = new ChangeEmailDialog(&loginData);
+ mCurrentDialog->setVisible(true);
break;
case STATE_CHANGEEMAIL_ATTEMPT:
diff --git a/src/gui/windows/changeemaildialog.cpp b/src/gui/windows/changeemaildialog.cpp
index a5c47e090..0de011722 100644
--- a/src/gui/windows/changeemaildialog.cpp
+++ b/src/gui/windows/changeemaildialog.cpp
@@ -97,7 +97,6 @@ ChangeEmailDialog::ChangeEmailDialog(LoginData *const data):
add(mCancelButton);
center();
- setVisible(true);
mFirstEmailField->requestFocus();
mFirstEmailField->setActionEventId("change_email");