diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 16:24:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:20 +0300 |
commit | 8a5c8638a11b0d2c121225b79fe8e73eee9a2bca (patch) | |
tree | 7120a81e2d02d4f1cd8cc52756abc5c48bffe720 /src | |
parent | 28b11ea101e08bba4a8b8b00ed553ffeb223384a (diff) | |
download | ManaVerse-8a5c8638a11b0d2c121225b79fe8e73eee9a2bca.tar.gz ManaVerse-8a5c8638a11b0d2c121225b79fe8e73eee9a2bca.tar.bz2 ManaVerse-8a5c8638a11b0d2c121225b79fe8e73eee9a2bca.tar.xz ManaVerse-8a5c8638a11b0d2c121225b79fe8e73eee9a2bca.zip |
move virtual member calls from logindialog constuctor into postInit.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 1 | ||||
-rw-r--r-- | src/gui/windows/logindialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/logindialog.h | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index b5c2e1829..0448160f4 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1264,6 +1264,7 @@ int Client::gameExec() { mCurrentDialog = new LoginDialog(&loginData, mCurrentServer.hostname, &mOptions.updateHost); + mCurrentDialog->postInit(); } else { diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index c320e0e10..f6c1baf42 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -252,6 +252,10 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName, reflowLayout(); center(); +} + +void LoginDialog::postInit() +{ setVisible(true); if (mUserField->getText().empty()) diff --git a/src/gui/windows/logindialog.h b/src/gui/windows/logindialog.h index c520c89ce..82357cfef 100644 --- a/src/gui/windows/logindialog.h +++ b/src/gui/windows/logindialog.h @@ -60,6 +60,8 @@ class LoginDialog final : public Window, public gcn::ActionListener, ~LoginDialog(); + void postInit() override; + /** * Called when receiving actions from the widgets. */ |