diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-17 20:57:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-17 21:17:12 +0300 |
commit | 38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb (patch) | |
tree | 4d9a586264126601cf9b649f975962481f5a7893 /src | |
parent | 5eeef71adcafe98dade6cc9d0c47a5260528592d (diff) | |
download | mv-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.tar.gz mv-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.tar.bz2 mv-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.tar.xz mv-38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb.zip |
dont use virtual function in changeemaildialog constructor.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 1 | ||||
-rw-r--r-- | src/gui/windows/changeemaildialog.cpp | 1 |
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"); |