From 47f2b13ff11fcfe551fe212e3d36b5adcb21f598 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Feb 2012 16:16:24 +0300 Subject: Remove description text from button of server dialog. Remove some unused code from server dialog. --- src/gui/serverdialog.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/gui/serverdialog.cpp') 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 -- cgit v1.2.3-70-g09d2