summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.h
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-22 19:43:14 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-22 19:43:14 +0000
commit113c3440f04470aca4f45840ab9b8db0459b7113 (patch)
tree58ac13a4bc1bd0dafd4c72a867208e95dd0c7077 /src/gui/serverdialog.h
parentc2d102ed9adfdf1a960b6eb97ce58961022f62c8 (diff)
downloadmana-113c3440f04470aca4f45840ab9b8db0459b7113.tar.gz
mana-113c3440f04470aca4f45840ab9b8db0459b7113.tar.bz2
mana-113c3440f04470aca4f45840ab9b8db0459b7113.tar.xz
mana-113c3440f04470aca4f45840ab9b8db0459b7113.zip
Plugged memory leak. Simplified code. Removed annoying reset of text fields. Changed error message and marked it as translatable.
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r--src/gui/serverdialog.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index ae81cb2d..53474611 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -84,31 +84,6 @@ class ServersListModel : public gcn::ListModel
};
/**
- * Listener used for handling the DropDown in the server Dialog.
- */
-class DropDownListener : public gcn::ActionListener
-{
- public:
- DropDownListener(gcn::TextField *serverNameField,
- gcn::TextField *serverPortField,
- ServersListModel *serversListModel,
- gcn::ListBox *serversListBox):
- currentSelectedIndex(0),
- mServerNameField(serverNameField),
- mServerPortField(serverPortField),
- mServersListModel(serversListModel),
- mServersListBox(serversListBox) {};
- void action(const gcn::ActionEvent &event);
- private:
- short currentSelectedIndex;
- gcn::TextField *mServerNameField;
- gcn::TextField *mServerPortField;
- ServersListModel *mServersListModel;
- gcn::ListBox *mServersListBox;
-};
-
-
-/**
* The server choice dialog.
*
* \ingroup Interface
@@ -144,8 +119,6 @@ class ServerDialog : public Window, public gcn::ActionListener
gcn::ScrollArea *mMostUsedServersScrollArea;
ServersListModel *mMostUsedServersListModel;
- DropDownListener *mDropDownListener;
-
LoginData *mLoginData;
};