summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 00:49:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 00:49:45 +0300
commit1307b14ff24f3935fa58aef405ffb246c0741336 (patch)
treebe0ebcda4a9b99a3b290fca9d8a210b18400b73a /src/gui/windows/charselectdialog.cpp
parentb10cb3ac1189eaa5f41184527eee342584231f84 (diff)
downloadmanaplus-1307b14ff24f3935fa58aef405ffb246c0741336.tar.gz
manaplus-1307b14ff24f3935fa58aef405ffb246c0741336.tar.bz2
manaplus-1307b14ff24f3935fa58aef405ffb246c0741336.tar.xz
manaplus-1307b14ff24f3935fa58aef405ffb246c0741336.zip
Remove getter for charServerHandler.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 3c355c199..95b3d6cfc 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -83,7 +83,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data) :
mDeleteButton(new Button(this, _("Delete"), "delete", this)),
mCharacterView(nullptr),
mCharacterEntries(0),
- mCharServerHandler(Net::getCharServerHandler()),
+ mCharServerHandler(charServerHandler),
mDeleteDialog(nullptr),
mDeleteIndex(-1),
mLocked(false),
@@ -166,21 +166,21 @@ CharSelectDialog::CharSelectDialog(LoginData *const data) :
addKeyListener(this);
center();
- Net::getCharServerHandler()->setCharSelectDialog(this);
+ charServerHandler->setCharSelectDialog(this);
mCharacterView->show(0);
updateState();
}
CharSelectDialog::~CharSelectDialog()
{
- Net::getCharServerHandler()->clear();
+ charServerHandler->clear();
}
void CharSelectDialog::postInit()
{
setVisible(true);
requestFocus();
- if (Net::getCharServerHandler()->isNeedCreatePin())
+ if (charServerHandler->isNeedCreatePin())
{
EditDialog *const dialog = new EditDialog(
_("Please set new pincode"), "", "OK");
@@ -261,7 +261,7 @@ void CharSelectDialog::action(const ActionEvent &event)
}
if (eventId == "switch")
{
- Net::getCharServerHandler()->clear();
+ charServerHandler->clear();
close();
}
else if (eventId == "change_password")
@@ -274,7 +274,7 @@ void CharSelectDialog::action(const ActionEvent &event)
}
else if (eventId == "unregister")
{
- Net::getCharServerHandler()->clear();
+ charServerHandler->clear();
client->setState(STATE_UNREGISTER);
}
else if (eventId == "try delete character")