diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-17 23:59:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:18 +0300 |
commit | b0e9e564c2cf081e512798f157dbbaebd7b99983 (patch) | |
tree | 33a2fa4d35a0d8e3652aac95f4a772efc493d8b4 /src/gui/windows | |
parent | 649348f19cdb3d65f825a2a3270b185fc9d83c75 (diff) | |
download | manaplus-b0e9e564c2cf081e512798f157dbbaebd7b99983.tar.gz manaplus-b0e9e564c2cf081e512798f157dbbaebd7b99983.tar.bz2 manaplus-b0e9e564c2cf081e512798f157dbbaebd7b99983.tar.xz manaplus-b0e9e564c2cf081e512798f157dbbaebd7b99983.zip |
move virtual member calls from connectiondialog constuctor into postInit.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/connectiondialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/connectiondialog.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/connectiondialog.cpp b/src/gui/windows/connectiondialog.cpp index cb03b5bbc..e0ca56e41 100644 --- a/src/gui/windows/connectiondialog.cpp +++ b/src/gui/windows/connectiondialog.cpp @@ -53,6 +53,10 @@ ConnectionDialog::ConnectionDialog(const std::string &text, reflowLayout(); center(); +} + +void ConnectionDialog::postInit() +{ setVisible(true); } diff --git a/src/gui/windows/connectiondialog.h b/src/gui/windows/connectiondialog.h index 6c7d298c5..596b32fde 100644 --- a/src/gui/windows/connectiondialog.h +++ b/src/gui/windows/connectiondialog.h @@ -49,6 +49,8 @@ class ConnectionDialog final : public Window, private gcn::ActionListener A_DELETE_COPY(ConnectionDialog) + void postInit(); + /** * Called when the user presses Cancel. Restores the global state to * the previous one. |