summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 21:26:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commit74e429575a1ace40339e3a7c73250548aec85247 (patch)
tree077226742441d79a19c2b2cdf89b537d3b3ca33d /src/gui/windows
parent7db67f02a28449006a1fb872f82612fd9d89bb61 (diff)
downloadplus-74e429575a1ace40339e3a7c73250548aec85247.tar.gz
plus-74e429575a1ace40339e3a7c73250548aec85247.tar.bz2
plus-74e429575a1ace40339e3a7c73250548aec85247.tar.xz
plus-74e429575a1ace40339e3a7c73250548aec85247.zip
move virtual member calls from serverdialog constuctor into postInit.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/serverdialog.cpp3
-rw-r--r--src/gui/windows/serverdialog.h2
2 files changed, 5 insertions, 0 deletions
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
*/