summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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");