summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-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)