diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-31 16:53:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | 8ad8da325107ef1b33bd6c3ed985859e7edb78ae (patch) | |
tree | 3dd76adef5e6dbe7da8db925ffa42ebbf21eb638 /src/gui/windows/charselectdialog.cpp | |
parent | 8cc52b6e9cf46643cc6300df844e70b8dcb85212 (diff) | |
download | manaverse-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.tar.gz manaverse-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.tar.bz2 manaverse-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.tar.xz manaverse-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.zip |
add basic implimentation for set pincode.
For now it not sending pincode to server.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 134aa2712..2d45e47ca 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -32,10 +32,13 @@ #include "being/attributes.h" +#include "listeners/pincodelistener.h" + #include "gui/dialogtype.h" #include "gui/windows/charcreatedialog.h" #include "gui/windows/chardeleteconfirm.h" +#include "gui/windows/editdialog.h" #include "gui/windows/logindialog.h" #include "gui/windows/okdialog.h" #include "gui/windows/textdialog.h" @@ -177,6 +180,13 @@ void CharSelectDialog::postInit() { setVisible(true); requestFocus(); + if (Net::getCharServerHandler()->isNeedCreatePin()) + { + EditDialog *const dialog = new EditDialog( + _("Please set new pincode"), "", "OK"); + dialog->postInit(); + dialog->addActionListener(&pincodeListener); + } } void CharSelectDialog::action(const ActionEvent &event) |