From 38f7ccb05133ed1d66ad7fb0b99b9abe893c99eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Oct 2013 20:57:33 +0300 Subject: dont use virtual function in changeemaildialog constructor. --- src/client.cpp | 1 + src/gui/windows/changeemaildialog.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3-70-g09d2