From 74e429575a1ace40339e3a7c73250548aec85247 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 21:26:49 +0300 Subject: move virtual member calls from serverdialog constuctor into postInit. --- src/gui/windows/serverdialog.cpp | 3 +++ src/gui/windows/serverdialog.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'src/gui') diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index d1ec6f0df..a8895cad9 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -330,7 +330,10 @@ ServerDialog::ServerDialog(ServerInfo *const serverInfo, addKeyListener(this); loadWindowState(); +} +void ServerDialog::postInit() +{ setVisible(true); mConnectButton->requestFocus(); diff --git a/src/gui/windows/serverdialog.h b/src/gui/windows/serverdialog.h index 95bcda706..31ad9609a 100644 --- a/src/gui/windows/serverdialog.h +++ b/src/gui/windows/serverdialog.h @@ -104,6 +104,8 @@ class ServerDialog final : public Window, A_DELETE_COPY(ServerDialog) + void postInit() override; + /** * Destructor */ -- cgit v1.2.3-70-g09d2