summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-01 16:16:24 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-01 16:16:24 +0300
commit47f2b13ff11fcfe551fe212e3d36b5adcb21f598 (patch)
tree8cd187a6c691b0dd5571cdbfe9fd88217f9622ef
parent5142382e1ed06d0bdc9d9a61214a31d1d66483ca (diff)
downloadmanaplus-47f2b13ff11fcfe551fe212e3d36b5adcb21f598.tar.gz
manaplus-47f2b13ff11fcfe551fe212e3d36b5adcb21f598.tar.bz2
manaplus-47f2b13ff11fcfe551fe212e3d36b5adcb21f598.tar.xz
manaplus-47f2b13ff11fcfe551fe212e3d36b5adcb21f598.zip
Remove description text from button of server dialog.
Remove some unused code from server dialog.
-rw-r--r--src/gui/serverdialog.cpp17
-rw-r--r--src/gui/serverdialog.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index a679bc2c5..bdde4b96f 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -302,7 +302,6 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
loadWindowState();
- setFieldsReadOnly(true);
mServersList->setSelected(0); // Do this after for the Delete button
setVisible(true);
@@ -420,8 +419,6 @@ void ServerDialog::valueChanged(const gcn::SelectionEvent &)
// Update the server and post fields according to the new selection
const ServerInfo &myServer = mServersListModel->getServer(index);
- mDescription->setCaption(myServer.description);
- setFieldsReadOnly(true);
mDeleteButton->setEnabled(myServer.save);
}
@@ -468,20 +465,6 @@ void ServerDialog::logic()
Window::logic();
}
-void ServerDialog::setFieldsReadOnly(bool readOnly)
-{
- if (!readOnly)
- {
- mServersList->setSelected(-1);
- mDescription->setCaption(std::string());
- }
-
- mAddEntryButton->setEnabled(readOnly);
- mDeleteButton->setEnabled(false);
- mLoadButton->setEnabled(readOnly);
- mDescription->setVisible(readOnly);
-}
-
void ServerDialog::downloadServerList()
{
// Try to load the configuration value for the onlineServerList
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index 0618d4c4c..081535c4c 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -146,8 +146,6 @@ class ServerDialog : public Window,
static int downloadUpdate(void *ptr, DownloadStatus status,
size_t total, size_t remaining);
- void setFieldsReadOnly(bool readOnly);
-
Label *mDescription;
Button *mQuitButton;
Button *mConnectButton;