summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-31 16:53:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commit8ad8da325107ef1b33bd6c3ed985859e7edb78ae (patch)
tree3dd76adef5e6dbe7da8db925ffa42ebbf21eb638 /src/gui
parent8cc52b6e9cf46643cc6300df844e70b8dcb85212 (diff)
downloadplus-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.tar.gz
plus-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.tar.bz2
plus-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.tar.xz
plus-8ad8da325107ef1b33bd6c3ed985859e7edb78ae.zip
add basic implimentation for set pincode.
For now it not sending pincode to server.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/charselectdialog.cpp10
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)