summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 20:27:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commitde920d02e5841bf8147c6b0ed14d83f3874ddf62 (patch)
tree04738ba32d9860c02e01f16c211e936aac78a8b7 /src/gui
parent0d5c5aa4e8f66c36d5f78d0da449ee6becdb8298 (diff)
downloadplus-de920d02e5841bf8147c6b0ed14d83f3874ddf62.tar.gz
plus-de920d02e5841bf8147c6b0ed14d83f3874ddf62.tar.bz2
plus-de920d02e5841bf8147c6b0ed14d83f3874ddf62.tar.xz
plus-de920d02e5841bf8147c6b0ed14d83f3874ddf62.zip
move virtual member calls from registerdialog constuctor into postInit.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/registerdialog.cpp4
-rw-r--r--src/gui/windows/registerdialog.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index 841b3768f..d0d504f8a 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -154,6 +154,10 @@ RegisterDialog::RegisterDialog(LoginData *const data) :
mConfirmField->addActionListener(this);
center();
+}
+
+void RegisterDialog::postInit()
+{
setVisible(true);
mUserField->requestFocus();
mUserField->setCaretPosition(static_cast<unsigned>(
diff --git a/src/gui/windows/registerdialog.h b/src/gui/windows/registerdialog.h
index 7d2156f32..e4c848a6c 100644
--- a/src/gui/windows/registerdialog.h
+++ b/src/gui/windows/registerdialog.h
@@ -77,6 +77,8 @@ class RegisterDialog final : public Window,
*/
~RegisterDialog();
+ void postInit();
+
/**
* Called when receiving actions from the widgets.
*/