From 8a5c8638a11b0d2c121225b79fe8e73eee9a2bca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 16:24:47 +0300 Subject: move virtual member calls from logindialog constuctor into postInit. --- src/gui/windows/logindialog.cpp | 4 ++++ src/gui/windows/logindialog.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/gui') 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. */ -- cgit v1.2.3-70-g09d2