summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-28 16:09:47 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-28 16:09:47 -0700
commit23070ec12d1c0ed92c98cc1b424de535f6539abe (patch)
tree2877b6a3842bc6ebaa65af2ea1ad88c843cd492e /src/gui
parente933e3a1c5bd2af8acb62f8f85750638262a4eef (diff)
downloadmana-23070ec12d1c0ed92c98cc1b424de535f6539abe.tar.gz
mana-23070ec12d1c0ed92c98cc1b424de535f6539abe.tar.bz2
mana-23070ec12d1c0ed92c98cc1b424de535f6539abe.tar.xz
mana-23070ec12d1c0ed92c98cc1b424de535f6539abe.zip
Fix inital state of server delete button
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/serverdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 31232104..da95b6a1 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -189,7 +189,6 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
mPortField->addActionListener(this);
mManualEntryButton->addActionListener(this);
mServersList->addSelectionListener(this);
- mServersList->setSelected(0);
usedScroll->setVerticalScrollAmount(0);
place(0, 0, serverLabel);
@@ -214,6 +213,7 @@ ServerDialog::ServerDialog(ServerInfo *serverInfo, const std::string &dir):
center();
setFieldsReadOnly(true);
+ mServersList->setSelected(0); // Do this after for the Delete button
setVisible(true);
if (mServerNameField->getText().empty())